A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Dirk Goldgar help please!!!



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 08:06 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Dirk Goldgar help please!!!

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
  #2  
Old May 6th, 2010, 08:22 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Dirk Goldgar help please!!!

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

  #3  
Old May 6th, 2010, 08:24 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default Dirk Goldgar help please!!!

"golfinray" wrote in message
...
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)

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.