Open form with criteria in ADP

J

Jose Perdigao

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
 
C

CyberDwarf

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
 
Top