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 / July 2007

Tip: Looking for answers? Try searching our database.

Switchboard Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don S. - 25 Jul 2007 20:34 GMT
I want to have one form that I can call from a switchboard and filter for
several people using a macro.  I’m using Access 2007 and my setup is as
follows:

SWITCHBOARD:
This is a manually designed switchboard where I’ve put a tab control with 2
tabs titled “Input Forms” and “Reports”.  On the “Input Forms” tab I have
placed a combo box named “cboExpItems”.  This is a drop-down box which
displays employee names from a table.  I want to select a name and using an
“AfterUpdate” event I want to run the following macro which will refer back
to “cboExpItems” for the name of the employee to filter the form.

MACRO:
Name:  ExpItemsSpPerson
   Action:    OpenForm
       FormName:    Expense Items
       View:    Form
       Where Condition: [RequestedBy]=[Forms]![Main
Switchboard]![cboExpItems]
       Window Mode:    Normal

This is not working.

When I select the employee name in the “cboExpItems” drop-down box I get
“Enter Parameter Value” with the above “[RequestedBy]=[Forms]![Main
Switchboard]![cboExpItems]“ shown.

Is my “Where Condition” statement not correct since I’m using a tab?  I’ve
used this setup before and it has worked fine.  I’m new to Access 2007 so
maybe something has changed.  Thanks for your help.
Maurice - 25 Jul 2007 21:14 GMT
Hi Don,

Just taking a wild guess here..

Try:
Where Condition: "[RequestedBy]= " & [Forms]![MainSwitchboard]![cboExpItems]

Signature

Maurice Ausum

> I want to have one form that I can call from a switchboard and filter for
> several people using a macro.  I’m using Access 2007 and my setup is as
[quoted text clipped - 26 lines]
> used this setup before and it has worked fine.  I’m new to Access 2007 so
> maybe something has changed.  Thanks for your help.
Don S. - 25 Jul 2007 21:30 GMT
I failed to explain that [Requestedby] is a field on the form the macro is
opening.  It should get it's value from the "cboExpItems" on the switchboard.

> Hi Don,
>
[quoted text clipped - 33 lines]
> > used this setup before and it has worked fine.  I’m new to Access 2007 so
> > maybe something has changed.  Thanks for your help.
 
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.