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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm creating a database with a back

Status
Not open for further replies.

PeterTC

Technical User
Apr 8, 2003
4
NL
I'm creating a database with a backend in SQL server and a front end in access. I also use temp tables stored in each access client to base any reports on(for flexibility). Within the visual basic code I connect to the tables using ADO with no problems.

strPathToMDB = "c:\access applications\Price support system.mdb"

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strPathToMDB & ";"

Set connec= New ADODB.Connection
connec.Open strConn

However when I populate the temp table, then open the report that is based on it the report opens and displays before the table has been fully populated. The SQL insert commands are performed asyncronusly which does not solve the problem.

My best solution so far is to make the application wait 10s before opening the report, however this is both inefficient and there is no guarantee that the whole temp table will be included in the report.

If anyone knows how to make the report wait unitl the updates of the temp table are completed or an alternative way to connect to the local tables it would be appreciated
 
Oops, I ment to say "the SQL insert commands are performed SYNCHRONOUSLY which does not solve the problem"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top