G
Guest
I have a combo box that lists BOE ID numbers on a form (frmPricing). Once the
user selects the choice, I want a subform (sfrmPricingA) to fill in
automatically.
My code is:
Private Sub cboBOENo_AfterUpdate()
sSQL = "SELECT * FROM BOE WHERE " & _
"id_BOE = " & Chr(39) & Me!cboBOENo & Chr(39)
Me!sfrmPricingA.Form.RecordSource = sSQL
End Sub
I get an error message that "You canceled the previous operation". When I
hit the debug button the "Me!sfrmPricingA.Form.RecordSource = sSQL" is
highlighted in yellow.
How do I get this to work?
user selects the choice, I want a subform (sfrmPricingA) to fill in
automatically.
My code is:
Private Sub cboBOENo_AfterUpdate()
sSQL = "SELECT * FROM BOE WHERE " & _
"id_BOE = " & Chr(39) & Me!cboBOENo & Chr(39)
Me!sfrmPricingA.Form.RecordSource = sSQL
End Sub
I get an error message that "You canceled the previous operation". When I
hit the debug button the "Me!sfrmPricingA.Form.RecordSource = sSQL" is
highlighted in yellow.
How do I get this to work?