I have 2 forms - a main form and form no. 2 in the same database. The main form has the contact information which the user chooses a selection from the drop down and the text boxes autofill with the correct information. Works great. But when I try the same thing (just with different information) on the next form I receive a VBA error. My code is posted below.
Private Sub QuoteDate_AfterUpdate()
'Update quote information on contact based on quotedate combobox.
Me!QuoteLink = Me![Quotes].Column(1)
Me!system = Me![Quotes].Column(2)
Me!employee = Me![Quotes].Column(3)
The error I receive is:
The expression AfterUpdate you entered as the event property setting produced the following error: Procedure declaration does not match description fo event of procedure having the same name.
I also receive this error with BeforeUpdate as well.
Private Sub QuoteDate_AfterUpdate()
'Update quote information on contact based on quotedate combobox.
Me!QuoteLink = Me![Quotes].Column(1)
Me!system = Me![Quotes].Column(2)
Me!employee = Me![Quotes].Column(3)
The error I receive is:
The expression AfterUpdate you entered as the event property setting produced the following error: Procedure declaration does not match description fo event of procedure having the same name.
I also receive this error with BeforeUpdate as well.