Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement if Form.Load won't update grid
Message
From
31/08/1999 10:43:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
SQL statement if Form.Load won't update grid
Miscellaneous
Thread ID:
00259664
Message ID:
00259664
Views:
54
Established a View in a DBC, which I am then using as the source for a grid. Put the following SQL statement in the load event of the form and put a "refresh()" in the .init of the grid:
crea sql view rostcursql AS SELECT * FROM rostcur WHERE ssn LIKE;
oRegParm.cssn NOFILTER (all one line in the form)

Worked OK last night, but I CAN'T get it to put anything in the "rostcursql" view today! The view was created as updateable.

I am going to want to add and/or delete records from the underlying table after I get this to work. Should I do the Select-SQL to a cursor instead of a view and then do a "use again", as I have seen mentioned on UT, or is the view in the DBC the better approach? Any ideas on how to get this to work, and what the best approach is?

TIA. This is drivin' me up a wall.
Next
Reply
Map
View

Click here to load this message in the networking platform