Dirk Goldgar help please!!!

  • Follow


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
0
Reply Utf 5/6/2010 7:06:01 PM

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
0
Reply Utf 5/6/2010 7:22:02 PM


"golfinray" <golfinray@discussions.microsoft.com> wrote in message 
news:2C8A77D5-05C0-4CC3-8004-EC1085C8A34A@microsoft.com...
> 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)

0
Reply Dirk 5/6/2010 7:24:14 PM

2 Replies
222 Views

(page loaded in 0.062 seconds)

Similiar Articles:
















7/29/2012 7:58:22 PM


Reply: