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 / Security / May 2004

Tip: Looking for answers? Try searching our database.

Is it possible to define global variable in select

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tina - 11 May 2004 00:23 GMT
I would like to put the data retrieved in my
select statement into global variable to be used
in other forms. Is it possible?

select order no as  <globalvarialbename> from table1

then I would like to use <globalvariablename> in
other queries, etc.

Thank you,
Tina
Tony C - 11 May 2004 10:35 GMT
This response is if you are referring to Vb Variables: -

I have been using public variables for some time now, in
the following manner: -

1.  Create a Module entitled "PublicVariables"
2.  Declare all variables in here that are shared between
more than one Form/Procedure: -

Public TempStr,SearchString As String

etc....

HTH

Tony C.
>-----Original Message-----
>I would like to put the data retrieved in my
[quoted text clipped - 9 lines]
>Tina
>.
TC - 12 May 2004 04:55 GMT
(snip)

> Public TempStr,SearchString As String

You realize that defines TempStr as a Variant - not a String?

HTH,
TC
 
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.