Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2005

Tip: Looking for answers? Try searching our database.

How do you reference the field on the form using variable?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barmaley - 03 May 2005 22:10 GMT
I've been using form reference  "Forms!Form_Name!Field_Name"

I need to replace Field_Name with variable containing filed name.
Is it possible

AvP
Allen Browne - 03 May 2005 22:24 GMT
Try:
   strField = "Field1"
   Forms!FormName(strField)

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> I've been using form reference  "Forms!Form_Name!Field_Name"
>
> I need to replace Field_Name with variable containing filed name.
> Is it possible
Barmaley - 03 May 2005 22:36 GMT
I knew that it gotta be simple

Thank you very much it worked

AvP

> Try:
>     strField = "Field1"
[quoted text clipped - 4 lines]
> > I need to replace Field_Name with variable containing filed name.
> > Is it possible
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.