Please help me...
I have a form which is made up of:
Main Form: Company Profile Form
Fields: Company Name, Address, Phone no.
Sub Form: Transactions Form
Fields: Company, Transaction Date,Transaction Type, Amount.
I want to make a main form containing the fields from The Company Profile Table with a subform
in datasheet view containing the fields from the Transaction Table. They are linked by
the Company field.
But I want the the user to be prompted for the inclusive dates of the transactions
every time the form is opened.
I tried using the Between [start date] and [end date] by making underlying queries.
Unfortunately I get prompted every time I move to the next record.
I've been trying to learn how to use the DoCmd.OpenForm method.
This is how my code looks like but it doesnt work.
DoCmd.OpenForm "Company Profile Form",acFormDS, ,"Between [Start] and [End] = Forms![Company Profile Form]![Transaction DAte]"
Any suggestions??
Thanks
MLT
I have a form which is made up of:
Main Form: Company Profile Form
Fields: Company Name, Address, Phone no.
Sub Form: Transactions Form
Fields: Company, Transaction Date,Transaction Type, Amount.
I want to make a main form containing the fields from The Company Profile Table with a subform
in datasheet view containing the fields from the Transaction Table. They are linked by
the Company field.
But I want the the user to be prompted for the inclusive dates of the transactions
every time the form is opened.
I tried using the Between [start date] and [end date] by making underlying queries.
Unfortunately I get prompted every time I move to the next record.
I've been trying to learn how to use the DoCmd.OpenForm method.
This is how my code looks like but it doesnt work.
DoCmd.OpenForm "Company Profile Form",acFormDS, ,"Between [Start] and [End] = Forms![Company Profile Form]![Transaction DAte]"
Any suggestions??
Thanks
MLT