Problem with Table column names in VBA module

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

Hello,
In My VBA Module, I connect to a table, and then use the
notation..

with tdf
MyModuleValue = !MyTableValue
end with

...to assign values used within the module.

It appears that !MyTableValue is always a constant because
it can only apply to a specific named column in the
table. How can I make it a variable, so that one time
I'm use one column, and another time I can use another
column without editing the code.

Any ideas?

Keith
 
Hi Chris
Seems that will work.
Thank you
Keith

-----Original Message-----
with tdf
MyModuleValue = .Fields(strFieldName).Value
end with


Chris


.
 

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