PC Review


Reply
Thread Tools Rate Thread

Dirk Goldgar help please!!!

 
 
golfinray
Guest
Posts: n/a
 
      6th May 2010
The other day, you gave me a fantastic fix for resetting my form
recordsource. You told me to add the query statement in second column of the
combo for each user selection in the first column. That works fantastic!!!
But now my filter doesn't work. I know I probably have something in the wrong
order. I have tried:
me.recordsource = me.cbodatasource.column(1) & vbnullstring
me.filter = "[district] = """ & me.cbodatasource & """"
me.filteron = true
me.requery

me.filter= "district] = """ & me.cbodatasource & """"
me.filteron = true
me.recordsource = me.cbodatasource.column(1) & vbnullstring

and all other combinations. I have tried requeries after one statement,
requeries after both. It will filter or it will set recordsource but not
both. I hope I won't have to have a separate combo for that. Thanks so much!
Milton
--
Milton Purdy
ACCESS
State of Arkansas
 
Reply With Quote
 
 
 
 
golfinray
Guest
Posts: n/a
 
      6th May 2010
Dirk - I was having a brain fart. I removed the filter and put the
Forms![myform].mycombo as the criteria of the other query. Worked like a
charm! Thanks so much again!!!!! Milt
--
Milton Purdy
ACCESS
State of Arkansas


"golfinray" wrote:

> The other day, you gave me a fantastic fix for resetting my form
> recordsource. You told me to add the query statement in second column of the
> combo for each user selection in the first column. That works fantastic!!!
> But now my filter doesn't work. I know I probably have something in the wrong
> order. I have tried:
> me.recordsource = me.cbodatasource.column(1) & vbnullstring
> me.filter = "[district] = """ & me.cbodatasource & """"
> me.filteron = true
> me.requery
>
> me.filter= "district] = """ & me.cbodatasource & """"
> me.filteron = true
> me.recordsource = me.cbodatasource.column(1) & vbnullstring
>
> and all other combinations. I have tried requeries after one statement,
> requeries after both. It will filter or it will set recordsource but not
> both. I hope I won't have to have a separate combo for that. Thanks so much!
> Milton
> --
> Milton Purdy
> ACCESS
> State of Arkansas

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      6th May 2010
"golfinray" <(E-Mail Removed)> wrote in message
news:2C8A77D5-05C0-4CC3-8004-(E-Mail Removed)...
> Dirk - I was having a brain fart. I removed the filter and put the
> Forms![myform].mycombo as the criteria of the other query. Worked like a
> charm! Thanks so much again!!!!! Milt



Glad you got it working, Milt.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dirk Goldgar DevilDog1978 Microsoft Access 5 30th Jun 2009 03:46 PM
Thanks Dirk Goldgar! Gina Whipp Microsoft Access Form Coding 1 8th Aug 2005 02:17 PM
More help with code - Dirk Goldgar? Noel Microsoft Access Form Coding 6 2nd Jul 2004 10:33 AM
To Dirk Goldgar Dave the wave Microsoft Access Form Coding 0 23rd Mar 2004 10:11 PM
Dirk Goldgar =?Utf-8?B?cm9jY28=?= Microsoft Access VBA Modules 1 27th Oct 2003 06:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 PM.