473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Writing to a Query

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
2 1227
PEB
1,418 Expert 1GB
Hi,

Hope that helps:

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

:)
Sep 27 '06 #2
thanks, it works great
Sep 29 '06 #3

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

Similar topics

0
by: JC | last post by:
I am using Mysql version: 4.0.18-max-log and trying to populate a database from a text file using source option from inside the mysql environment. The population run OK but when creating the...
3
by: Michael D. | last post by:
Hello all! I'm trying to design and write a little application for someone in my office, but I'm having some trouble. I have the following database structure (Note: just some sample data,...
2
by: visionstate | last post by:
Hi there, Is there a way of searching a sub-form (reading from a query) without writing what is exactly contained in the query field. For example if I had a 'Finance Manager' in the query but just...
1
by: Adam Sandler | last post by:
Hello, Using VWD 2005 here... I have a question about writing SQL in a TableAdapter. Our DB server here is Oracle but since I'm just prototyping right now, I created a copy of the table I need...
3
by: acdevteam | last post by:
Hello Everyone, We are a dev team very new to Access, and so far we have gotten excellent support from this group. We have a question about writing a query. Here is the situation: We have a...
3
by: Bidhan | last post by:
Hi, I have a table (Stock) important field are partsNo., des, qty, pPrice, sPrice, qtyBuy. I make a query based on the table and has one more field SAB(qty+qtyBuy). I made a form based on the query....
2
by: weird0 | last post by:
Hi! On the recommendation of one of the MVP's on this group....... I tried writing parametrized queries. But the fucking thing does not work and it does not update the data in the table. I...
3
by: Thorben Grosser | last post by:
Hello Newsgroup, I am doing some archive database and therefore got one table indexing every folder and one table storing which rack belongs to which department, eg: table folders :...
3
by: jpenney | last post by:
Hi, I'm learning PHP and want to try writing a beginner's library to do all my mysql stuff. I want to be able to connect to a server, use a database and open a table (maybe later a generalized...
2
by: mary mathews | last post by:
is there any way to change the position of a column in a table by writing sql query? for eg; Table 'demo' contains 3 fields: companyName EmpName id I need to move the 'id' from last...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.