natesternberg
Registered User.
- Local time
- Yesterday, 23:33
- Joined
- Mar 3, 2011
- Messages
- 11
I have a form with a combo box whose row source is a query:
When you open the form, the combo starts out blank: the values are all there, you just have to click the down arrow to see any of them. The problem is, I have a text box later in the form that calculates a value based on the ID column in the combo. And when the combo's blank, that column's missing, so the text box says #Error.
So I guess I have to either a) make the combo not start out blank or b) write the text box expression to handle blanks. I haven't managed to do either, though: any suggestions?
Or am I going about this the wrong way?
Code:
SELECT [Lname]+", "+[tblVolunteers].[Fname] AS Name, tblVolunteers.ID FROM tblVolunteers WHERE (((tblVolunteers.Lname)<>"")) ORDER BY tblVolunteers.Lname;
When you open the form, the combo starts out blank: the values are all there, you just have to click the down arrow to see any of them. The problem is, I have a text box later in the form that calculates a value based on the ID column in the combo. And when the combo's blank, that column's missing, so the text box says #Error.
So I guess I have to either a) make the combo not start out blank or b) write the text box expression to handle blanks. I haven't managed to do either, though: any suggestions?
Or am I going about this the wrong way?