Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange query result

Status
Not open for further replies.

rogertrigell

Programmer
Jan 17, 2006
3
GB
Running a query on a single table in VFP 7 misses a record meeting conditions but adding a browse on the queried table prior to the query and the missing record is found.

Explanation please!
 
When you reindexed the file did you just issue a REINDEX command or did you DELETE TAG ALL then Index on <<yourfield>> tag <<yourtagname>> additive

Sounds like an index problem to me also.



Don Higgins
 

Roger,

Is the table in question row-buffered? Are there any outstanding records in the buffer?

If so, that would explain the behaviour you are seeing. The query doesn't see the buffered records, but the browse will move the record pointer, thus causing the updates to be committed.

The solution in that case would be to do a TABLEUPDATE() or TABLEREVERT() before you do the query.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top