Referencing Fields on Continuous Subform

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

Guest

On a Continuous Subform, how do I correctly reference one of the fields of
the current record?

For example, I've a button on the continous subform and the button's onclick
event, I've the code "Me.fieldname.value". However, it also returns the first
record. Any ideas?
 
Charles said:
On a Continuous Subform, how do I correctly reference one of the fields of
the current record?

For example, I've a button on the continous subform and the button's onclick
event, I've the code "Me.fieldname.value". However, it also returns the first
record.


But that is how you reference the value of a field or
control in the current record. To get to any record other
than the current record requires VBA code and the form's
RecordsetClone object.

I suggest that somehow you've managed to make the first
record current (Requery?), or you're misinterpreting the
results you're seeing.
 
Hi Marshall

Thanks for your reply. I've forgotten to select the current record prior to
invoking the code.

Kind Regards
Charles
 

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

Back
Top