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

Insert Into query to be run on IF statement, no results shown

Status
Not open for further replies.

Andromeda42

Programmer
Sep 29, 2003
4
US
I have an insert into query that I need run only if the user selects "create new report". Have a lovely if statement worked out, but for the life of me I can't remember how to run a query with code. That, and once the query is run, I don't want the results to display on the screen at all. Should just update the table with no indication to the user that anything at all was done except new people will show up on the report when they get to it.

I'm a little rusty so any help would be most appreciated :)

Thanks!
 
Dim db As DAO.Database
set db = CurrentDB()
db.Execute "INSERT INTO ..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top