Open form with criteria in ADP

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top