G
gmead7
I have been trying to get this to work and keep getting a data type mismatch
error. The field,"FY_Estimated_PP" is a number - long integer in the
tblProportions table. I suspect the problem is that data in the form is text
and the field used as a criterion is long integer.
Start code:
Private Sub Form_Current()
Dim FYportion
FYportion = DLookup("PayPortion", "tblProportions", "FY_Estimated_PP = '" &
Me!FY_Estimated_PP & "'")
MsgBox FYportion
End Sub
I have tried to use the Format function such as below (and have tried a
multitude of variations)
Private Sub Form_Current()
Dim FYportion
FYportion = DLookup("PayPortion", "tblProportions", "FY_Estimated_PP = '" &
Format(Me!FY_Estimated_PP,'Long') & "'")
MsgBox FYportion
End Sub
Does anyone have any ideas? thanks, George
error. The field,"FY_Estimated_PP" is a number - long integer in the
tblProportions table. I suspect the problem is that data in the form is text
and the field used as a criterion is long integer.
Start code:
Private Sub Form_Current()
Dim FYportion
FYportion = DLookup("PayPortion", "tblProportions", "FY_Estimated_PP = '" &
Me!FY_Estimated_PP & "'")
MsgBox FYportion
End Sub
I have tried to use the Format function such as below (and have tried a
multitude of variations)
Private Sub Form_Current()
Dim FYportion
FYportion = DLookup("PayPortion", "tblProportions", "FY_Estimated_PP = '" &
Format(Me!FY_Estimated_PP,'Long') & "'")
MsgBox FYportion
End Sub
Does anyone have any ideas? thanks, George