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 / June 2006

Tip: Looking for answers? Try searching our database.

Storing Vairables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
williamr - 16 Jun 2006 20:21 GMT
I have a query that filters a record using the following code:
DoCmd.ApplyFilter , "[Vault No] =  " & [Forms]![FrmReleaseOffsite]![xVaultNo]

it works but there are some other fields of info I want to capture and use
else where.  I "Dim" xDeveloperName as string, then run this docmd, then say
xdeveloperName = DeveloperName. DeveloperName is the field in the query.  
What's wrong!!

William
Jason Martin - 17 Jun 2006 10:20 GMT
Note sure if I understand but if you're setting a variable and need it to be
available for additional subs, then

Public xDeveloperName As String

Or, create a system table to hold values to use else where.  Use an update
query referencing fields on your open form or if you prefer code, use DAO or
ADO to write an UPDATE SQL string for a new QueryDef and Execute.

Hope this helps.

- Jason

>I have a query that filters a record using the following code:
> DoCmd.ApplyFilter , "[Vault No] =  " &
[quoted text clipped - 7 lines]
>
> William
 
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.