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 / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Referencing fields in subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sandy - 19 Jan 2008 15:45 GMT
I am attempting to reference the values in a subform - the main form is
"Finalise Jobs" the subform is "FinaliseJobDetailsSubform". I have tried the
following :-

"strMessage = strMessage & vbCrLf & "Repair Type - " _
       & [Finalise Jobs].[FinaliseJobDetailsSubform]![cboCatName] _
       & " Item - " & [Finalise
Jobs].[FinaliseJobDetailsSubform]![txtQuantity] & "x " _
       & [Finalise Jobs].[FinaliseJobDetailsSubform]![cboRepProduct]"

but receive error :-

Number - "2465" and Description - "Microsoft Office Access can't find the
field '|'  referred to in your expression."

Any suggestions?
Sandy
Sandy - 19 Jan 2008 16:52 GMT
Cracked it!

Finally found a web article that had the correct syntax. This works if you
are interested

strMessage = strMessage & vbCrLf & "Repair Type - " _
       & Forms![Finalise Jobs]![FinaliseJobDetailsSubform].Form.cboCatName
& _
       " Item - " _
       & Forms![Finalise Jobs]![FinaliseJobDetailsSubform].Form.txtQuantity
& "x " _
       & Forms![Finalise
Jobs]![FinaliseJobDetailsSubform].Form.cboRepProduct

Sandy

>I am attempting to reference the values in a subform - the main form is
>"Finalise Jobs" the subform is "FinaliseJobDetailsSubform". I have tried
[quoted text clipped - 13 lines]
> Any suggestions?
> Sandy
 
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



©2009 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.