need help with form property

P

Peter Kaufman

Well, no response to my problem of a report not finding a form
property in Access 2003 although the same app works fine in 2000,
20002, so let me ask something else.

Does this work for you in Access 2003?

Create a form property like so:
Option Compare Database
Option Explicit

Private mlngWasAutoID As Long
Public Property Let prpWasAutoID(x As Long)
x = mlngWasAutoID
End Property
Public Property Get prpWasAutoID() As Long
prpWasAutoID = mlngWasAutoID
End Property

And then use the property in a report criteria like so:

@pintWasAutoID=forms!frmWas.prpWasAutoID

I'd appreciate if someone would even try a test for me, 'cause it is
not working here - the report simply prompts for the property.

Thanks a lot,

Peter
 
P

Peter Kaufman

Set macro security level to low (although there aren't any macros) and
converted to Access 2003 format, and it is working. Might be something
to do with the Jet SP8 although this is an adp.

Thanks,

Peter
 

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