Stefan
Wed Nov 01 10:28:28 CST 2006
"Phrank" <Phrank@discussions.microsoft.com> schrieb im Newsbeitrag
news:B7AC195B-0C15-4046-A0F0-CD04C613C0D5@microsoft.com...
>I started out with a regular database called labels.dbf. I open a form and on
> that form there is a grid showing the contents of the labels.dbf.
>
> I decided to use a cursor instead. I create the cursor in the load of the
> form. When the form opens it says it can't instaniate the labels.dbf cursor.
>
> How do you tell a grid to wait till the dbf is available? DO I have to
> create the grid after I create the cursor? Sounds like alot of work.
>
> Is there a way to have the grid on the form and then tell it what cursor to
> use after during the init or load?
You can use a (parameterized) view instead. Or prevent "grid reconstruction"
by setting the grid.RecordSource=Space(0) right before requerying the
temp cursor. See also
http://groups.google.com/advanced_group_search
hth
-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------