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 / Macros / July 2005

Tip: Looking for answers? Try searching our database.

Group Option & Setvalue Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C.D. - 29 Jul 2005 17:19 GMT
I created a group option to present 3 choices for users and a macro to
setvalue to a text box for each choice to pass the parameters for my query.

My question is: how to clear the previous text boxes (or set them to Null)
if the user makes another choice after the previous ones?

My try didn't work:

[Forms]![Margin Dialog]![Frame17]=1      SetValue 0 to Text 26
[Forms]![Margin Dialog]![Frame17]=1      SetValue Null to Text28
[Forms]![Margin Dialog]![Frame17]=1      Setvalue Null to Text30
[Forms]![Margin Dialog]![Frame17]=2     SetValue 1 to Text 28
[Forms]![Margin Dialog]![Frame17]=2      SetValue Null to Text26
[Forms]![Margin Dialog]![Frame17]=3     SetValue Null to Text 26
[Forms]![Margin Dialog]![Frame17]=3     SetValue Null to Text28

Thanks,
C.D. - 29 Jul 2005 17:25 GMT
Never mind... it works now!!!

> I created a group option to present 3 choices for users and a macro to
> setvalue to a text box for each choice to pass the parameters for my query.
[quoted text clipped - 13 lines]
>
> Thanks,
 
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.