Hi again, i am using below code to open a form with related record. However, the form opens but prompts for a new record.. why is it that? Access 2007 frontend / SQL 2008 backend.
ID is the primary key
Fruits is the form i want to open
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Fruits"
stLinkCriteria = "[ID]=" & "'" & Me![ID] & "'"
DoCmd.OpenForm stDocName, , , "[Fruits]" = " & Me.ID"
Thanks!
ID is the primary key
Fruits is the form i want to open
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Fruits"
stLinkCriteria = "[ID]=" & "'" & Me![ID] & "'"
DoCmd.OpenForm stDocName, , , "[Fruits]" = " & Me.ID"
Thanks!