G
ghost
Greeting,
I have the following code to lookup for two values in table and put them in
two controls in subform as follows:
Private Sub RevenueID_AfterUpdate()
Me.Revenue = DLookup("[Revenue]", "[Revenue]", "[ID]='" &
[Forms]!Sales!Sales_subform![RevenueID] & "'")
Me.Price = DLookup("[Price]", "[Revenue]", "[ID]='" &
[Forms]!Sales!Sales_subform![RevenueID] & "'")
The problem is , once I select the Revenue number from the RevenueID Combo
box the following msg appears:
Run-time erro’3464’:
Data type mismatech in critieria expression.
Any help please
I have the following code to lookup for two values in table and put them in
two controls in subform as follows:
Private Sub RevenueID_AfterUpdate()
Me.Revenue = DLookup("[Revenue]", "[Revenue]", "[ID]='" &
[Forms]!Sales!Sales_subform![RevenueID] & "'")
Me.Price = DLookup("[Price]", "[Revenue]", "[ID]='" &
[Forms]!Sales!Sales_subform![RevenueID] & "'")
The problem is , once I select the Revenue number from the RevenueID Combo
box the following msg appears:
Run-time erro’3464’:
Data type mismatech in critieria expression.
Any help please