Hi, I need help with this one.
I have a database wherein I have a table called Properties and a table called Mail_Campaign.
For both tables, they have this one field in common, which is the field PID (it’s the property id, and is unique).
I have this Search Form (frmSearch) created which searches the properties based on the criteria/filter entered and the result is shown on the subform (frmsubProperties).
What I wanted to happen, is that, when I click a button, it would open a new form where I could pull out these properties from the search result, in the Mail_Campaign table (and put it in a subform maybe). It would be based on the PID coming from the search result.
For example, in the image below, I have done a search and it returns 4 properties as a result. I wanted to pull out these 4 properties from the Mail_Campaign table (in a subform that is not locked) so that I could enter dates under such marketing activity on my mail_campaign table.
sample image:
Would this be possible?
I may need some thorough guidance here, as I am really not a programmer, nor am I that good about databases.
I hope somebody could help me. Thank you very much!
PS. I have also attached my database if ever you may need it as a reference.
ADDITIONAL(edited):
I have updated my attached database. I have added a button to my search form (frmsearch) to supposedly call in my frmMailCampaign.. but instead of showing just the 4 properties based on the search made (example in the image above), it just returns all properties.
This is what's on the code:
I totally have no idea what I am doing..
help pls..
I have a database wherein I have a table called Properties and a table called Mail_Campaign.
For both tables, they have this one field in common, which is the field PID (it’s the property id, and is unique).
I have this Search Form (frmSearch) created which searches the properties based on the criteria/filter entered and the result is shown on the subform (frmsubProperties).
What I wanted to happen, is that, when I click a button, it would open a new form where I could pull out these properties from the search result, in the Mail_Campaign table (and put it in a subform maybe). It would be based on the PID coming from the search result.
For example, in the image below, I have done a search and it returns 4 properties as a result. I wanted to pull out these 4 properties from the Mail_Campaign table (in a subform that is not locked) so that I could enter dates under such marketing activity on my mail_campaign table.
sample image:
Would this be possible?
I may need some thorough guidance here, as I am really not a programmer, nor am I that good about databases.
I hope somebody could help me. Thank you very much!
PS. I have also attached my database if ever you may need it as a reference.
ADDITIONAL(edited):
I have updated my attached database. I have added a button to my search form (frmsearch) to supposedly call in my frmMailCampaign.. but instead of showing just the 4 properties based on the search made (example in the image above), it just returns all properties.
This is what's on the code:
Code:
Private Sub Command24_Click()
DoCmd.OpenForm "frmMailCampaign", , , "PID=" & BuildFilter
End Sub
I totally have no idea what I am doing..
help pls..
Attachments
Last edited: