andyparksy
New member
- Local time
- Today, 17:34
- Joined
- Jun 14, 2010
- Messages
- 2
Hi guys.
first post (please be gentle
) but have a little problem with some combo boxes that I can't find an answer for.
I have set up some dependant combo boxes, Combo1(Areas) and Combo2(a list of properties), so that Combo 2 only shows the desired fields based on entry in Combo1, and working fine.
I needed to be able to change Combo1 so set up an after update procedure to clear Combo2 to Null and to do a requery.
All was fine until I have tried to enter another text box ("info1") that has a link to Combo2. I have another table that shows some different information about each property and wanted to show this on the form but whenever I try to include it(or even just include the required field within the query that the form is based upon) and change Combo1 I get a Null error ("tried to assign the Null value to a variable that is not a variant data type"). I am guessing it is struggling to return something for Info1 because the procedure has set Combo2 to null
Any ideas would be very very welcome as really hit a dead end as far as my very limited knowledge goes!
Cheers
first post (please be gentle
I have set up some dependant combo boxes, Combo1(Areas) and Combo2(a list of properties), so that Combo 2 only shows the desired fields based on entry in Combo1, and working fine.
I needed to be able to change Combo1 so set up an after update procedure to clear Combo2 to Null and to do a requery.
All was fine until I have tried to enter another text box ("info1") that has a link to Combo2. I have another table that shows some different information about each property and wanted to show this on the form but whenever I try to include it(or even just include the required field within the query that the form is based upon) and change Combo1 I get a Null error ("tried to assign the Null value to a variable that is not a variant data type"). I am guessing it is struggling to return something for Info1 because the procedure has set Combo2 to null
Any ideas would be very very welcome as really hit a dead end as far as my very limited knowledge goes!
Cheers