Hello I have a form and I also created a ComboBox named "ComputerName" and a textbox named " CompCycle"
These fields are both independent, I also create a functionthat when the formis opened I can see the computer Name of the PC.
What I would like to do is that I would like to link both combobox and text box.
For example if my computer name is MAFD900VC well I should be able to see the cycle in the textbox...I do not want to link the form to the table....
My table name is ComputerName_tb
My SQL statement for theh combo box is
SELECT ComputerName_tb.ComputerName, ComputerName_tb.CompLocation, ComputerName_tb.CompCycle
FROM ComputerName_tb;
I added the following code in my open form event...
Me.CompCycle = Me![ComputerName].Column(2)
but I keep on getting a Null value....
Does anyone know how to do this
These fields are both independent, I also create a functionthat when the formis opened I can see the computer Name of the PC.
What I would like to do is that I would like to link both combobox and text box.
For example if my computer name is MAFD900VC well I should be able to see the cycle in the textbox...I do not want to link the form to the table....
My table name is ComputerName_tb
My SQL statement for theh combo box is
SELECT ComputerName_tb.ComputerName, ComputerName_tb.CompLocation, ComputerName_tb.CompCycle
FROM ComputerName_tb;
I added the following code in my open form event...
Me.CompCycle = Me![ComputerName].Column(2)
but I keep on getting a Null value....
Does anyone know how to do this