DoCmd Openform Properties

jsanders

If I Only had a Brain
Local time
Today, 00:09
Joined
Jun 2, 2005
Messages
1,910
Good Morning All,

Can anyone tell me what the stLinkCriteria does in this statement?


Code:
 Dim stDocName As String
  Dim stLinkCriteria As String

    stDocName = "Orders"
    DoCmd.OpenForm stDocName, , , stLinkCriteria

Thank you,
Joe
 
Based on the number of columns after the form name, it should be a where condition to limit the range of records to be opened with the form.

For example it could say Price < 50 or Status = "sold"

Have a look at the help for docmd.openform which shows the syntax
 

Users who are viewing this thread

Back
Top Bottom