T
Tim
I have a combo box that I use to pull values from another
table. This works fine in my current form.
For instance:
+---------------------------+
| +------------------+ |
| | Value 1 in combo| |
| | Value 2 in combo| |
| +------------------+ |
| |
+---------------------------+
Pretend the box that has Value 1... in it is the
dropdown. When I select "Value 2 in combo" it put it in
the combo box (named mycombo1) as expected. I can close
the form and reopen it and it is there just fine.
When I try to use mycombo1 in a report, it puts the index
value it the report instead of the Text Value.
Ok so trying to be sneaky, I use an event procedure that
runs this code when an OnChange occurs to the mycombo1
box:
Private Sub mycombo1_Change()
[TheTextFrom_mycombo1] = [mycombo1].SelText
End Sub
But when I do this I get an error:
Run-time error '2465'
Microsoft Access can't find the field '|' referred to in
your expression.
Any ideas how I can just use the combobox to put the TEXT
values in my table instead of the index to the text
values?
Any of this make sense?
Thanks,
Tim
table. This works fine in my current form.
For instance:
+---------------------------+
| +------------------+ |
| | Value 1 in combo| |
| | Value 2 in combo| |
| +------------------+ |
| |
+---------------------------+
Pretend the box that has Value 1... in it is the
dropdown. When I select "Value 2 in combo" it put it in
the combo box (named mycombo1) as expected. I can close
the form and reopen it and it is there just fine.
When I try to use mycombo1 in a report, it puts the index
value it the report instead of the Text Value.
Ok so trying to be sneaky, I use an event procedure that
runs this code when an OnChange occurs to the mycombo1
box:
Private Sub mycombo1_Change()
[TheTextFrom_mycombo1] = [mycombo1].SelText
End Sub
But when I do this I get an error:
Run-time error '2465'
Microsoft Access can't find the field '|' referred to in
your expression.
Any ideas how I can just use the combobox to put the TEXT
values in my table instead of the index to the text
values?
Any of this make sense?
Thanks,
Tim