Hi:
I'm running a simple query on an Access Table from VB6.0. The operator can
make several different selections. Based on their selection, a different,
specific SQL needs to be run. So, when the operator says... "Do it"...the
click procedure goes to a Function (based on their selection)...the specific
function builds the correct SQL and returns it...then it sends that query to
the final procedure to run the sql, retrieve the data and put it on my form.
When I run the program, it returns the data in the first three fields, but
the fourth field is empty...there is data in that field in the table...but
it is not returned. I've checked the SQL that is being passed and it is
being passed correctly.
When I put a "MsgBox SQL" to check out the SQL (after the SQL is developed
and before it is actually run in the final procedure) the SQL is correct and
all of the data is printed on the form (that is when the program pauses and
waits for the operator to click on the message box). When there is no pause
for a message box, the data is not returned...when them message box is
there, the data is returned correctly.
CAn anyone tell me what the heck is happening? And how I might get around
this without having the operator read and close a message box?
Any assistance or suggestion would be helpful.
JP
Douglas J. Steele - 25 Mar 2006 20:56 GMT
You probably need to introduce a delay to ensure that the data has actually
been written to the table.
Try invoking the Idle method of the DBEngine object to ensure that all
processing has been completed before proceeding.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> Hi:
>
[quoted text clipped - 23 lines]
>
> JP
jianghuishan - 23 May 2006 11:57 GMT
jaingse e wewe
> Hi:
>
[quoted text clipped - 22 lines]
>
> JP
Marcin - 28 May 2006 19:59 GMT
> jaingse e wewe
> > Hi:
[quoted text clipped - 30 lines]
> >
> > JP
===========================================================================
FULL LEGAL SOFTWARE !!!
Games, video, program, image, chat, questbook, catalog site, arts, news,
and...
This site it is full register and legal software !!!
Please download and you must register software !!!
PLEASE REGISTER SOFTWARE:
http://www.webteam.gsi.pl/rejestracja.htm
DOWNLOAD LEGAL SOFTWARE:
http://www.webteam.gsi.pl
Full question and post: http://www.webteam.gsi.pl
Contact and service and advanced technology:
http://www.webteam.gsi.pl/kontakt.htm
FAQ: http://www.webteam.gsi.pl/naj_czesciej_zadawane_pytania.htm
Please add me URL for you all site and search engines and best friends !!!
Me site:
SERWIS WEBNETI: http://www.webneti.gsi.pl
PORTAL WEBTEAM:http://www.webteam.gsi.pl
LANGUAGE: http://www.webneti.cjb.net
==========================================================================
jianghuishan - 23 May 2006 11:58 GMT
ni hao a wo ye bu zhid a jin i naikogang
> Hi:
>
[quoted text clipped - 22 lines]
>
> JP