connerlowen
Registered User.
- Local time
- Today, 17:27
- Joined
- May 18, 2015
- Messages
- 204
HI,
I have a form that has a field that needs to get its data from a query based on two fields in the form. The following is my DLookUp statement:
DLookup("[COMEX]", "OptionMetalsListQ", "[Metals] = '" & [cboMetals].[Column](1) & "'" And "[DateOfPrice] = " & Me.txtDateOfPrice)
Comex is a metal market. the bound column in cboMetals is text and The date is a date.
I am getting the error "Run-time error '13': Type Mismatch.
I cannot figure out what I need to change. Any help would be greatly appreciated.
Thanks,
Conner Owen
I have a form that has a field that needs to get its data from a query based on two fields in the form. The following is my DLookUp statement:
DLookup("[COMEX]", "OptionMetalsListQ", "[Metals] = '" & [cboMetals].[Column](1) & "'" And "[DateOfPrice] = " & Me.txtDateOfPrice)
Comex is a metal market. the bound column in cboMetals is text and The date is a date.
I am getting the error "Run-time error '13': Type Mismatch.
I cannot figure out what I need to change. Any help would be greatly appreciated.
Thanks,
Conner Owen