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 / New Users / April 2005

Tip: Looking for answers? Try searching our database.

How do I move data between variables and queries?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sjw - 12 Apr 2005 16:59 GMT
I have a global variable "xxxx" and want to reference its value in the
criteria of a query.  I was thinking of;

   Like '*' & [forms]![CloseItem].[xxxx].[value]

I also have a different variable "yyyy" and want to set its value to the
result of a single field from a query.  I was thinking of;

  DoCmd.OpenQuery "someQuery"
  yyyy = queries!someQuery!FieldName
Ofer - 12 Apr 2005 17:08 GMT
Create a Global Function that return the variable
Function aaaaa()
aaaaa="xxxx"
End Function

and now you can call your function in your query and get
the value of "xxxx"

>-----Original Message-----
>I have a global variable "xxxx" and want to reference its value in the
[quoted text clipped - 9 lines]
>
>.
 
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.