antonyx
Arsenal Supporter
- Local time
- Today, 14:37
- Joined
- Jan 7, 2005
- Messages
- 556
hi.. dont have much time.. haven't touched access for months..
trying to use a link criteria with a number datatype.. the form opens but the chosen record doesnt display..
here is a text datatype version that works..
tried tweaking it to allow a number datatype to be used.. like i said.. isnt working.
trying to use a link criteria with a number datatype.. the form opens but the chosen record doesnt display..
here is a text datatype version that works..
Code:
Private Sub quicksearch3_DblClick(Cancel As Integer)
Dim stLinkCriteria As String
stLinkCriteria = "[JobRef]=" & "'" & Me![quicksearch3].Column(0) & "'"
DoCmd.OpenForm "3bookings", , , stLinkCriteria
End Sub
tried tweaking it to allow a number datatype to be used.. like i said.. isnt working.
Code:
Private Sub quicksearch4_DblClick(Cancel As Integer)
Dim stLinkCriteria As String
stLinkCriteria = "[bookingid] = " & Me![quicksearch4].Column(0) & ""
DoCmd.OpenForm "2bookings", , , stLinkCriteria
End Sub