Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index Question
Message
 
To
02/07/2002 14:19:33
Jorge Haro
Independent Consultant
Juarez, Mexico
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00674581
Message ID:
00674896
Views:
24
I have never used a view, so how am I going to tell anyone else how to use one


>Why not just use a view?
>
>>Well Steven I would say to do a work around and not a filter
>>
>>
>>
>>select recno() as recno, *; && record number and every field
>>
>>then get _TALLY
>>
>>n_tot = _TALLY && returns number of records returned by query
>>then upon exit of the form update the orignal table
>>do while n_tot <> 0
>>select tmp_tbl
>>m = tmp_tbl.recno
>>select org_tbl
>>goto m
>>replace org_tbl.a with tmp_tbl.a, org_tbl.b with tmp_tbl.b
>>n_tot = n_tot - 1
>>select tmp_tbl
>>skip 1
>>enddo
>>
>>this will replace everything, which is not what you want but it is on the right path, you could add a logical field called "change" and make it "T" after a record is changed, then only update those records
>>
>>hope this helps
>>
>>>I need to be able to update the records with the grid.
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform