Open form with criteria in ADP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I open a form with a criteria?

In mdb, I use the following code:

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "F3_PsTpGrf"

stLinkCriteria = "[SelectID]=" & Me![SelectID]
DoCmd.OpenForm stDocName, , , stLinkCriteria

I try to open in ADP but doesn´t work, What's happen?

Thanks
 
Jose,

Works for me :-o

example:-
DoCmd.OpenForm "FormName", , , WhereCondition, acFormAdd, , OpenArgs

As long as the WhereCondition string evaluates to a valid SQL WHERE
clause......

HTH

Steve
 
Back
Top