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 / Queries / July 2006

Tip: Looking for answers? Try searching our database.

Options Group to filter Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anne - 02 Jul 2006 19:12 GMT
I had problems getting this going but it seems to be working now, here is my
code

Private Sub Frame24_AfterUpdate()
Select Case Frame24
Case 1
Me.RecordSource = "Select * from cboCustomersQB where [customerno] is null "
Me.Requery
Case 2
Me.RecordSource = "Select * from cboCustomersQB"
End Select
End Sub

It works, however, although case 1 is the default and is checked when the
form opens, all jobs show upon opening. I have to click the case 2 button to
then the case 1 button and then it works.
I tried to on load event and on open event of the form with
Me.RequeryPrivate Sub Form_Load()
Me.Frame24.Requery
End Sub

Can't get it to open showing case 1
Anne
Ofer Cohen - 02 Jul 2006 20:03 GMT
Call the Sub on the OnCurrent event of the form

Call Frame24_AfterUpdate()

it should run this sub after the form is loaded

Signature

Good Luck
BS"D

> I had problems getting this going but it seems to be working now, here is my
> code
[quoted text clipped - 19 lines]
> Can't get it to open showing case 1
> Anne
 
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.