Rowsource on subform combo not working

vmon

Registered User.
Local time
Today, 16:56
Joined
Jan 21, 2003
Messages
49
I am using XP with SQL 2k . I have a combo box on a subform that I want the rowsource to be populated by the following statement. The procedure works if I enter an ID but does not work when called by form. The code is on the mainform. Any ideas?

Private Sub Form_Current()

Forms!frmScheduleProduction!frmScheduleProductionAssembly_sub!cboID_ITEM.RowSource = _
"EXEC lkpProductionAssemblyBomWu '" & Me.ID_SCHEDULE_PRODUCTION & "'"

End Sub

Thanks,
vmon
 

Users who are viewing this thread

Back
Top Bottom