Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with records
Message
 
 
To
18/07/2006 12:45:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01137295
Message ID:
01137338
Views:
11
Shlomo,

>I need to write code that checks if records with specific data exist in a table .

Look at the SQL-Select command:
select * ;
   from TheTable ;
   into cusor TheFoundData ;
   where SomeField = 2

if ( _tally > 0 )
   * matching data is in there
else
   * no matching data is in there
endif
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform