Link to home
Start Free TrialLog in
Avatar of advlegals
advlegals

asked on

MS Access VBA - Advanced Tabular Forms

I have a tabular form which displays a matrix of values.

Is there any way to reference the dynamically generated form fields? I've created an on-click event and this works for all fields, I'd really like a mechanism for a click on any field to return a row and column identifier.

Thanks.
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

"s there any way to reference the dynamically generated form fields"

Sorry .... not really sure what you mean or are trying to do?

mx
Me neither- I can't imagine what you are referring to.
Can you describe how these fields are getting onto the form.
Avatar of advlegals
advlegals

ASKER

DatabaseMX:

For instance: My tabular form is based upon a table featuring three columns and three rows. Is there any form functionality/referencing mechanism that would return a cell reference for any given cell i.e. clicking on row 3, column 2 would return something like 3,2?

Thank you.

Well ... I guess you could use the AbsolutePosition or CurrentRecord property of the form record source AND some sort of text box labeling scheme (eg txtCol1, txtCol2 ...) ... then display according to that,

mx
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial