Question : VBA - Combo Box ID

I ave a combo box, which I want to move from one form to the other. On the new form I will have a combo box listing staff members and another listing offices. I have tried to simply copy and paste the box, but it tells me that "this control has an invalid control source" But the control source works fine on the other form. I have also tried recreating the combo using the wizard, but i get the same error message. Can someone tell me why?

Answer : VBA - Combo Box ID

SELECT Ucase([IDOffice]) AS OfficeID, Ucase([fldOffice]) AS OfficeFld
FROM TblOffice
ORDER BY TblOffice.IDOffice;

Note you will need to name your fileds AS something different from teh filed name in the underlying table and then you will need to change teh recoirdsource on your combo box to read the revised field name.
Random Solutions  
 
programming4us programming4us