Hi there , I have a form opening in datasheet view. When I double click on the ID field of a particular record I want it to open a form in form view on that record so this is what I came up with:
Now I'm only a newbie but I thought I'd done alright here, only this causes an input box with title: "Enter Parameter Values" and msgTxt: "strBookingNo"
I have used the debugger to check and variable strBookingNo is taking the value it should but the Where Condition argument doesn't seem to take it. I'm sure the problem is with my lack of understanding of how the argument is formed but I've looked around and found no help with this particular pickle.
Thanks in advance
Code:
Private Sub BookingNo_DblClick(Cancel As Integer)
Dim strBookingNo As String
strBookingNo = Me![BookingNo]
DoCmd.OpenForm "Bookings", acNormal, , "Bookings![BookingNo]=strBookingNo", acFormReadOnly, acWindowNormal
End Sub
Now I'm only a newbie but I thought I'd done alright here, only this causes an input box with title: "Enter Parameter Values" and msgTxt: "strBookingNo"
I have used the debugger to check and variable strBookingNo is taking the value it should but the Where Condition argument doesn't seem to take it. I'm sure the problem is with my lack of understanding of how the argument is formed but I've looked around and found no help with this particular pickle.
Thanks in advance