M
Meesh
One last question for the day! I am trying to create conditional combo boxes
for the first time and I think I have the basics but something in the
execution went wrong. I currently have two columns DeviceID and Portname.
The idea is that when you select the device ID, it will fill the portname
combo with available ports on that device. We do have a table where we are
inputting both device name and portname. DeviceID is importing the deviceID
numbers from the Device table (where we are obviously inputting the devices
and other information about the devices).
Here is the setup:
DeviceID and PortName are both Combo boxes.
DeviceID is bound to a column from the Device table.
Set up a query for portname, it is querying the current table (ports) for
Portname and has the following criteria:
[Forms]![frmTestingAGAIN]![DeviceID]. Somehow altogether to row source looks
like:
SELECT Ports.PortName FROM Ports WHERE
(((Ports.PortName)=[Forms]![frmTestingAGAIN]![DeviceID]));
DeviceID has the following query: SELECT Devices.ID, Devices.DeviceName FROM
Devices ORDER BY Devices.[ID];
DeviceID also has a macro set up on AfterEvent which may or may not be set
up correctly as well. But it has requery selected and under argument is says
Portname.
Back in form view: I select a device id from the list, and then I get a
popup:
Enter Parameter Value
Forms!frmTestingAGAIN!DeviceID
(text box)
Any way to fix this?? I appreciate anyone and everyone’s help.
for the first time and I think I have the basics but something in the
execution went wrong. I currently have two columns DeviceID and Portname.
The idea is that when you select the device ID, it will fill the portname
combo with available ports on that device. We do have a table where we are
inputting both device name and portname. DeviceID is importing the deviceID
numbers from the Device table (where we are obviously inputting the devices
and other information about the devices).
Here is the setup:
DeviceID and PortName are both Combo boxes.
DeviceID is bound to a column from the Device table.
Set up a query for portname, it is querying the current table (ports) for
Portname and has the following criteria:
[Forms]![frmTestingAGAIN]![DeviceID]. Somehow altogether to row source looks
like:
SELECT Ports.PortName FROM Ports WHERE
(((Ports.PortName)=[Forms]![frmTestingAGAIN]![DeviceID]));
DeviceID has the following query: SELECT Devices.ID, Devices.DeviceName FROM
Devices ORDER BY Devices.[ID];
DeviceID also has a macro set up on AfterEvent which may or may not be set
up correctly as well. But it has requery selected and under argument is says
Portname.
Back in form view: I select a device id from the list, and then I get a
popup:
Enter Parameter Value
Forms!frmTestingAGAIN!DeviceID
(text box)
Any way to fix this?? I appreciate anyone and everyone’s help.