OK, so you are saying that I need to change the name of the table only in the query to "Me.Department" ?
Cascading Combo Box Filtering
Collapse
X
-
Me.Department is a reference to a control on the current form, not a table name.
Here is what the query needs:
SELECT - your fields names. Currently asking for the field CUA#
FROM - the name of the table where your selected fields can be found, currently listed as "VEHICLE DETAILS : Table" but this is wrong
WHERE - the criteria that specifies which records to be selected
You need a valid table name for the query to get records from. You need valid field names from the table you are querying to SELECT and to set criteria by in the WHERE clause. I don't know what tables names you have or the fields names so I can't tell you what exact text needs to go in the query.Comment
-
-
Got it. Here's what I have listed in the SQL view of the query:
Code:SELECT [CUA#] FROM [VEHICLE DETAILS] WHERE [CUA#]=[Department]
I imagine that I now need to connect the query to the form with the drop down box, right?Comment
-
-
-
Oh, Duh. I can't believe I missed that. What other fields in tblVEHICLE DETAILS do you want to see in your combo box? You will need to enter those field names in the SELECT portion of your query as well.
What other forum topic are you talking about?Comment
-
The last one... the forum topic where we were originally.
Anyway, that is the only field that will need to be seen. The idea is that they select the department from the first drop down list. Then, they move to the next drop down where the CUA#'s are populated for that department.
Although we haven't gotten this far yet, once they select the CUA# that they want from that list, it opens the appropriate form for that vehicle.Comment
-
Oh, we are in the same forum topic, just page 2. Each page only holds 25 posts.
Something seems strange with the way you are designing this database. Can you list the fields in tblVEHICLE DETAILS along with their data types for me? I have a guess of what is wrong, but I would like to check the list before going further.Comment
Comment