Hi there,
Here is my situation:
What I want to achieve :
I want to be able to fill in the Named ranges with the relevant data from the Access table. I need to be able to pull one cell at a time (the cross reference of a certain row and a certain column), and not the entire row matching the name. I basically need the VBA equivalent of a INDEX/MATCH formula but for Access.
That's why "Recordset" does not answer my need, as it pulls the entire row. I found a workaround by myself but it seems very cumbersome and I am sure there is a more effective way of doing this. The workaround : I record the .AbsolutPosition of the Field "Name" when it matches and then use this position to pull the required row from the required column.
I am pretty sure all of the above is very confusing, but i'm new to Access and it's pretty tough to explain my problem.
Let me know if you need more info,
Thanks!
Tharka
Here is my situation:
- I have a table on Access with a first column called "Name" (ex: Peter, Jack, Jane ...) as a Primary Key and many other data columns
- I have an Excel sheet with various Named ranges, each range has only one cell (named after the Fields column in my access database). This sheet has a list of "Names" (ex : only Peter and Jane).
What I want to achieve :
I want to be able to fill in the Named ranges with the relevant data from the Access table. I need to be able to pull one cell at a time (the cross reference of a certain row and a certain column), and not the entire row matching the name. I basically need the VBA equivalent of a INDEX/MATCH formula but for Access.
That's why "Recordset" does not answer my need, as it pulls the entire row. I found a workaround by myself but it seems very cumbersome and I am sure there is a more effective way of doing this. The workaround : I record the .AbsolutPosition of the Field "Name" when it matches and then use this position to pull the required row from the required column.
I am pretty sure all of the above is very confusing, but i'm new to Access and it's pretty tough to explain my problem.
Let me know if you need more info,
Thanks!
Tharka
Last edited: