By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

Writing to a Query

P: 4
I do not know if this is even possible but here it goes.

I have a table with 2 fields Builder Name and

On a form I am giving the user the option to choose a builder's name from a drop down list and select a status for that builder from a toggle switch.

Once that is complete I then want to have a print preview toggle button that is running off a query, that would print the filtered data they have selected.

I have the query, but I do not know how to write to it.

Any ideas
Sep 26 '06 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,418

Hope that helps:

Set mydb = CurrentDb()
Set Myquery = mydb.CreateQueryDef("WriteQuery", "Select * FROM Yourtable;")

Sep 27 '06 #2

P: 4
thanks, it works great
Sep 29 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.