troubleshooting Question

Datamismatch when doing a VBA Event in Access

Avatar of cres1121
cres1121 asked on
VBAMicrosoft Access
6 Comments2 Solutions109 ViewsLast Modified:
I want to pass a variable when I double click on a form to open another form.  

 Line item number is a auto number with long integer on one table.

On the second table it is number with long integer.

When I created the double click event when I am on line item number

Private Sub line_item_number_DblClick(Cancel As Integer)
DoCmd.OpenForm "TBLservicelinedetails", WhereCondition:=" [line item number] = '" & Me.[line item number] & "'"
End Sub

Run time error 3464
Data type Mismatch in criteria expression....
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros