Query in subform, how to use a field from main form?

Snecia

Registered User.
Local time
Yesterday, 18:24
Joined
Apr 5, 2013
Messages
12
Hi there,
I have a query in my subform:
Code:
SELECT ContainsTracks.albums, ContainsTracks.tracks
FROM ContainsTracks
WHERE ContainsTracks.albums LIKE [VALUE IN TEXTBOX1 FROM MAIN FORM]

As you can see in the brackets, I would like to use the value in textbox1 on my main form in this query (so I can select only the tracks from the album that is typed in textbox1, disregarding the others).

How can this be done?

Thank you for your time guys,
 
Try..
Code:
Forms![yourFormName]!TextBox1
 

Users who are viewing this thread

Back
Top Bottom