Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does Requery() affect _TALLY?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00535351
Message ID:
00535581
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hi!

_Tally will not be set for remote views. Thus it is not recommended to use _Tally for views when you plan to move to SQl Server or other database in the future. You can use following:

if requery('MyView')=1 AND reccount('MyView')>0
...
endif



>Hello,
>
>1.) When I perform a requery() on an SQL-View from the command window then _tally is updated.
>2.) If I perform a requery() from inside an EXE I seem to (sometimes) run code that is unexpected based on the _tally value.
>3.) The Hacker's Guide doesn't list requery() as one of the items that affects _tally.
>
>I guess I should switch to reccount() to determine if requery() returns and records from a view.
>
>Thanks,
>
>Kevin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform