WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Filtering Subform using option buttons on main form

 
   Home -> Office other -> General Discussions RSS
Next:  Creating a new page  
Author Message
Kevin

External


Since: Oct 31, 2009
Posts: 3



(Msg. 1) Posted: Sat Oct 31, 2009 12:14 pm
Post subject: Filtering Subform using option buttons on main form
Archived from groups: microsoft>public>access (more info?)

I trying the set up a filter option for my database. Long story short
i have a subform in a tab control on the main form. then on the main
form i have a option box with radio buttons with the following
choices, Filter by date, Filter by Account, None and others may be
added later. How do go about setting it up to where i can either
enter dates and have the subform in the tab control display the
correct conditions. and then after the filter click the none radio
button to clear the filter. I have read numerous posts and tried many
things in VBA and i am not sure where to go from here.

Any help would be much appreciated.
Thanks,
Back to top
Login to vote
Kevin

External


Since: Oct 31, 2009
Posts: 3



(Msg. 2) Posted: Sat Oct 31, 2009 1:10 pm
Post subject: Re: Filtering Subform using option buttons on main form [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 31, 2:14 pm, Kevin <kevin.pt... DeleteThis @yahoo.com> wrote:
> I trying the set up a filter option for my database.  Long story short
> i have a subform in a tab control on the main form.  then on the main
> form i have a option box with radio buttons with the following
> choices, Filter by date, Filter by Account, None and others may be
> added later.  How do go about setting it up to where i can either
> enter dates and have the subform in the tab control display the
> correct conditions.  and then after the filter click the none radio
> button to clear the filter.  I have read numerous posts and tried many
> things in VBA and i am not sure where to go from here.
>
> Any help would be much appreciated.
> Thanks,

*****ADDITION*****
I would also like the option to sort by both Date and account
together. Again, thank you for your time!
Back to top
Login to vote
pietlinden

External


Since: Aug 29, 2006
Posts: 251



(Msg. 3) Posted: Sat Oct 31, 2009 10:46 pm
Post subject: Re: Filtering Subform using option buttons on main form [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 31, 3:10 pm, Kevin <kevin.pt... DeleteThis @yahoo.com> wrote:
> On Oct 31, 2:14 pm, Kevin <kevin.pt... DeleteThis @yahoo.com> wrote:
>
> > I trying the set up a filter option for my database.  Long story short
> > i have a subform in a tab control on the main form.  then on the main
> > form i have a option box with radio buttons with the following
> > choices, Filter by date, Filter by Account, None and others may be
> > added later.  How do go about setting it up to where i can either
> > enter dates and have the subform in the tab control display the
> > correct conditions.  and then after the filter click the none radio
> > button to clear the filter.  I have read numerous posts and tried many
> > things in VBA and i am not sure where to go from here.
>
> > Any help would be much appreciated.
> > Thanks,
>
> *****ADDITION*****
> I would also like the option to sort by both Date and account
> together.  Again, thank you for your time!

Something like this;
http://www.mvps.org/access/forms/frm0023.htm

just add the sorting with the filter when you build it.
Back to top
Login to vote
Kevin

External


Since: Oct 31, 2009
Posts: 3



(Msg. 4) Posted: Sat Oct 31, 2009 11:45 pm
Post subject: Re: Filtering Subform using option buttons on main form [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Nov 1, 12:46 am, "pietlin...@hotmail.com" <pietlin....TakeThisOut@hotmail.com>
wrote:
> On Oct 31, 3:10 pm, Kevin <kevin.pt....TakeThisOut@yahoo.com> wrote:
>
>
>
>
>
> > On Oct 31, 2:14 pm, Kevin <kevin.pt....TakeThisOut@yahoo.com> wrote:
>
> > > I trying the set up a filter option for my database.  Long story short
> > > i have a subform in a tab control on the main form.  then on the main
> > > form i have a option box with radio buttons with the following
> > > choices, Filter by date, Filter by Account, None and others may be
> > > added later.  How do go about setting it up to where i can either
> > > enter dates and have the subform in the tab control display the
> > > correct conditions.  and then after the filter click the none radio
> > > button to clear the filter.  I have read numerous posts and tried many
> > > things in VBA and i am not sure where to go from here.
>
> > > Any help would be much appreciated.
> > > Thanks,
>
> > *****ADDITION*****
> > I would also like the option to sort by both Date and account
> > together.  Again, thank you for your time!
>
> Something like this;http://www.mvps.org/access/forms/frm0023.htm
>
> just add the sorting with the filter when you build it.- Hide quoted text -
>
> - Show quoted text -

Ok, so I added that and now i get a runtime 438 error.
I am really not sure what any of that string really means. I am new
to VBA in access so please bare with me. here is what i have:

Private Sub Option27_GotFocus()

Me.filterbegin.Visible = True
Me.filterend.Visible = True
strSQL = "Select * from sometable where"
******strSQL = strSQL & " someID=" & Me!Transactions
Me![Transactions subform].Form.RecordSource = strSQL

End Sub

Currently the line beginning with the asterics is the one giving me
the error. I am not sure if i am missing something else. I didnt
think i would have this many issues with this. Again thanks for the
help.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support