Refer to columnn in source but not on form?

R

Ryan

In an event procedure, can I reference a column that is in
my recordsource but does not appear on the form? If so,
how?
 
G

Gary Miller

An easy way is to put it on the form and make it's visible
property false. You can make it very tiny and even on top of
another control if you are crunched for room.

--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
 
J

Jim Allensworth

In an event procedure, can I reference a column that is in
my recordsource but does not appear on the form? If so,
how?
Sure. Me.mycolumn
But, what is it that you need to do with the information?

- Jim
 
R

Ryan

It is an autonumber primary key I need to use in a DCount
function call in order to check the presence of records in
another table.
-----Original Message-----
 
R

Rick Brandt

Ryan said:
In an event procedure, can I reference a column that is in
my recordsource but does not appear on the form? If so,
how?

Forms have no problem with this, but Reports do. I just add a control for
Reports that is not visible, but I don't think there's any advantage/reason
to do that with a Form.
 
J

Jim Allensworth

OK, then you might use it along the lines of ...

DCount("*", "tblOtherTable", "FK=" & Me.PKColumn)

Of course use your object names.

- Jim

It is an autonumber primary key I need to use in a DCount
function call in order to check the presence of records in
another table.
 

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