Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Setting Access Report Recordsource To A Filtered Recordset

Recommended Posts

Hi,in my Access application on Report_Open of a report.I do some manipulations to a recordset.Now i want to be able to update the recordsource of my report with the recordset i just worked on. I get an error type mismatchme.recordsource = filteredRsI have tried several other ways. If anyone can please help me.

Share this post


Link to post
Share on other sites

I've found it's generally quite useful to post a portion of your code and the full error message when asking a question of this nature. It's pretty hard to narrow it down with such limited information.

Share this post


Link to post
Share on other sites

I know I'm a bit late to reply (just 12 days or so), but let me try and help without your code... Offcorse, if you haven't solved the problem yet...

Type mismatch error usualy means that you are trying to assign variable of one type to the variable of the other type. Now, I'm pretty sure that's not the case here... Try to put SET in front of this line, so it would look something like

  Set Me.Recordsource = filteredRs

This might also do the trick. If it doesn't, post a small portion of your code, as well as declarations for filteredRS, and what type is Recordsource property...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.