Hi,
I have a list box on a form, whose row source points to a separate
query. The query refers to a field on the form to filter records on
the list box, like such: WHERE tblA.DesignType = [Forms]![frmForm1]!
[txtDesignType]).
Now I want to put this list box on a second form. Rather than create
a second query that would reference a field on the second form, I want
to try to use the same query, and make it generic.
Is there a way to do this?
Can I take off the WHERE clause from the query, and put it somewhere
on the form? In other words, can I filter the query by adding a
filter to each of these two forms, to filter the list box?
I know I could put the query's SQL directly into the row source of the
form, but because it joins about 6 tables, I'd prefer to keep it
separate and easier to read.
Thanks in advance..
lorirobn 1 8764
On May 29, 9:54 am, lorirobn <lorir...@yahoo.comwrote:
Hi,
I have a list box on a form, whose row source points to a separate
query. The query refers to a field on the form to filter records on
the list box, like such: WHERE tblA.DesignType = [Forms]![frmForm1]!
[txtDesignType]).
Now I want to put this list box on a second form. Rather than create
a second query that would reference a field on the second form, I want
to try to use the same query, and make it generic.
Is there a way to do this?
Can I take off the WHERE clause from the query, and put it somewhere
on the form? In other words, can I filter the query by adding a
filter to each of these two forms, to filter the list box?
I know I could put the query's SQL directly into the row source of the
form, but because it joins about 6 tables, I'd prefer to keep it
separate and easier to read.
Thanks in advance..
lorirobn
put your textbox on a "common" form that you always have open and
update it as required for your filter. remember to requery the active
listbox This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: chrisse |
last post by:
Hey,
I'm having quite a bit of trouble trying to filter through a list
using a text box and multiple combo boxes. When you write anything in
the text box the list goes blank. Although when you...
|
by: Jean |
last post by:
Hi,
I think this is quite a simple one:
I have a ComboBox, where the source is a stored query. When I click the
drop-down arrow on the Box, it takes awhile. I want to run this query
in the...
|
by: Steve |
last post by:
Hi,
I want to get a list of files in a directory, but I want
to filter the list to *.vb, for example. If I use a
straight forward
Directory.GetFileSystemEntries(path, "*.vb")
I get the...
|
by: Les Stout |
last post by:
Hi all, i am a newbie trying to have a map of South Africa with the
various Provinces (States) and want to click on one and them to open a
report for that selection, using the clicked area as the...
|
by: espositozero |
last post by:
Hello...
I'm REALLY new to this whole thing, so if you all don't mind speaking in lamens terms for me... What I want to do seems like it should be simple, but I've been searching everywhere and I...
| |
by: doctorfeelyg |
last post by:
Hi there,
I’m relatively new to access so please forgive any ignorance. Here is my, rather long-winded, plea for help:
I have a main table which contains a list of ‘projects’ and associated...
|
by: jamesnkk |
last post by:
I have a listbox which show customer Names on the 1st column and PO numbers on the 2nd column.
When user select the customer and press the OK button, it will access to the PO form.
Problem here...
|
by: Jerry911 |
last post by:
Hi,
I have a query that I use to export data to a spreadsheet. The query itself works fine and I can manually edit the query to supply filtered information. What I would like to do is use a form...
|
by: mjvm |
last post by:
HI,
I have had a search for the answer to this question, but I can't transfer what I am reading to my database. I don't know enough about the language required, but have been able to get my...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |