bakerboy_1111
Registered User.
- Local time
- Today, 17:24
- Joined
- Dec 1, 2003
- Messages
- 43
I have created a form called "Cable_To_Drum". This form has a list box called "Cable_Code_Box". I am currently creating a list box called "Drum_Same".
I have a table called Drum_Table which contains various columns, two of which are called "Cable_Code" and "Drum_Number" respectively.
The idea is that many drum numbers can have the same cable code. That is, say, for example, Drum_Number 1 has Cable_Code 3DF, and Drum_Number 2 also has Cable_Code 3DF.
I wish to create a list box ("Drum_Same") in my form that will show all the drum numbers that have the same cable code as that shown in the list box "Cable_Code_Box".
I've tried the following:
SELECT [Drum_Table].[Drum_Number] FROM Drum_Table WHERE ((([Drum_Table].[Cable_Code])=[Forms]![Cable_To_Drum]![Cable_Code_Box]));
This will not work and I don't understand why?
Can somebody please help me with this?
I have a table called Drum_Table which contains various columns, two of which are called "Cable_Code" and "Drum_Number" respectively.
The idea is that many drum numbers can have the same cable code. That is, say, for example, Drum_Number 1 has Cable_Code 3DF, and Drum_Number 2 also has Cable_Code 3DF.
I wish to create a list box ("Drum_Same") in my form that will show all the drum numbers that have the same cable code as that shown in the list box "Cable_Code_Box".
I've tried the following:
SELECT [Drum_Table].[Drum_Number] FROM Drum_Table WHERE ((([Drum_Table].[Cable_Code])=[Forms]![Cable_To_Drum]![Cable_Code_Box]));
This will not work and I don't understand why?
Can somebody please help me with this?