E
el zorro
I have a text box that I want to display a specific value from a table when I
click a control. But I can't get this to work in the click event statement of
the control:
Forms!FormA!TextBox.ControlSource = "SELECT TableA.number, TableA.item FROM
TableA WHERE TableA.number =" & 5
The number 5 will be replaced with a value from the form if I can get the
first part to work, but so far all I get in TextBox is "#Name?"
Probably a stupid error somewhere on my part. Or maybe text boxes don't
accept SELECT statements? Any ideas?
THanks!
click a control. But I can't get this to work in the click event statement of
the control:
Forms!FormA!TextBox.ControlSource = "SELECT TableA.number, TableA.item FROM
TableA WHERE TableA.number =" & 5
The number 5 will be replaced with a value from the form if I can get the
first part to work, but so far all I get in TextBox is "#Name?"
Probably a stupid error somewhere on my part. Or maybe text boxes don't
accept SELECT statements? Any ideas?
THanks!