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

Urgent: Echo Method

Status
Not open for further replies.
Nov 6, 2002
89
CH
Dear colleagues

Can you help on this?

I have a form where users may enter data. Right after the input, MS Access should update a field in a query without actually showing the query table.

So far I tried the following with the help of a Macro.

Echo False
Openquery

Unfortunately, MS Access opens the query although I put "Echo" to false. Does anyone know what I am doing wrong? Is there a solution with an easy VBA code?

Stefan
 
I'm not sure what you're trying to do with the query. But here's some code that will execute the query via code.

Dim cnn as ADODB.Connection

Set cnn = CurrentProject.Connection
cnn.Execute "Your SQL String"
 
Try

Docmd.SetWarnings False
Openquery
Docmd.SetWarnings True
[yinyang]
 
Just an addon note to shannon...

Docmd.SetWarnings False
Docmd.RunSQL 'string containing sql statement'
Docmd.SetWarnings True

Cheers!
[atom]
In the sweat of thy brow shall you eat your bread
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top