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

Automatic Yes

Status
Not open for further replies.

YellowTail

Programmer
Nov 9, 2006
2
US
I have a developed SQL statement that develops tables. Each time a table is created I get Yes/No question if I want that to be created.

I use this statement to run my SQL statment.
DoCmd.RunSQL srsl

I would like to have a default answer to be 'Yes', what is the process for doing this.



 
Don't forget to turn on again...

DoCmd.SetWarnings False
DoCmd.RunSQL srsl
DoCmd.SetWarnings True

or, to execute no records...

Currentproject.Connection.Execute _
"CREATE TABLE tblCountry" & _
" pkCountryID PRIMARY KEY AUTONUMBER..." & _
" ...txtCountry TEXT(50)",,adExecuteNoRecords

no recordset will be returned (less taxing) (ADO or DAO)



 
. . . or permanently turn off this response to [blue]action queries[/blue] with:
[ol][li]MenuBar - Tools - Options - Edit/Find Tab.[/li]
[li]In the [blue]Confirm[/blue] section remove the checkmark fom [blue]Action queries[/blue][/li][/ol]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top