Filter data on a continous form via a value from another form

MattioMatt

Registered User.
Local time
Today, 20:50
Joined
Apr 25, 2017
Messages
99
I currently have two continuous forms. On form_A I'd like to link values in one column so that it will open form_B when the end users clicks on the link and filters the continuous form_B with value of which the end user clicked on from form_A is this at all possible?
 
open the 2nd form using the key in form A:

docmd.openform "form_B" ,,,"[id]=" & me.id
 
Apologies for the delay in replying.

Thanks for your post, it's almost working. At the moment I am getting a pop up to ask me for a value.

Does it need an extra set of quotes? As I hadn't previously mentioned this is for a text field not a numeric field
 
Yes you need to escape the text value;
Code:
docmd.openform "form_B" ,,,"[id]=[COLOR="Red"]'[/COLOR]" & me.id & [COLOR="red"]"'"[/COLOR]
 
Thanks so much Minty! It works perfectly! Thank you to you both!
 

Users who are viewing this thread

Back
Top Bottom