still cannot fill in other field from a dropdown list

M

Michael

I have the following in my "ProductID" text box control source "me!ProductID
= ProductName.column(1)"

my sql for the "ProductName" Dropdown list is

SELECT Products.ProductName, Products.ProductID, Products.ProductionPerKilo,
Products.SemeCode FROM Products;

I get #Name? in the text box.



thank you
Michael
 
M

Michael

Hello would there be a reason that it only works with the first column? I
have 4 columns in the dropdown list (only the 1st column showing in the list
and I am using

=[ProductName].[Column](1)
=[ProductName].[Column](2)
=[ProductName].[Column](3)
=[ProductName].[Column](4)

The info shows in the first text field, but all the rest are blank. If I
change the third text field to =[ProductName].[Column](1) and move the
location of the 3rd field to the second column (0) being the first, it will
show the correct information.
thank you
Michael
 
R

Rick Brandt

Michael said:
Hello would there be a reason that it only works with the first
column? I have 4 columns in the dropdown list (only the 1st column
showing in the list and I am using

=[ProductName].[Column](1)
=[ProductName].[Column](2)
=[ProductName].[Column](3)
=[ProductName].[Column](4)

The info shows in the first text field, but all the rest are blank.
If I change the third text field to =[ProductName].[Column](1) and
move the location of the 3rd field to the second column (0) being the
first, it will show the correct information.
thank you
Michael

Check the ColumnCount property on the ComboBox. It is not enough to have the
additional columns in the RowSource.
 
M

Michael

Thank you Rick.. that did it.
Michael

Rick Brandt said:
Michael said:
Hello would there be a reason that it only works with the first
column? I have 4 columns in the dropdown list (only the 1st column
showing in the list and I am using

=[ProductName].[Column](1)
=[ProductName].[Column](2)
=[ProductName].[Column](3)
=[ProductName].[Column](4)

The info shows in the first text field, but all the rest are blank.
If I change the third text field to =[ProductName].[Column](1) and
move the location of the 3rd field to the second column (0) being the
first, it will show the correct information.
thank you
Michael

Check the ColumnCount property on the ComboBox. It is not enough to have
the additional columns in the RowSource.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top