SimonPGreen
IS-IT--Management
Hi,
I've had a good play with DoCmd.Openform but can't work out if it possible to achieve my goal. I have a main form bound to a table on the one side and a datasheet form bound to a query selecting records from both the table bound to the main form and a related table.
The datasheet view form is opened via command button from the main form using DoCmd.Openform. At present this is opensin Edit so that all records matching the where condition are displayed - the where is defined using a control value from the main form - no problem. I want a user to be able to add additional rows to the datasheet view without having to manually enter the foreign key value or lookup manually i.e.
[ValNo] [Date] [Value] [FKRef]
1 10/1/07 100 26 <- existing record
2 10/2/07 300 <- New Record
The key thing here is that the user needs to be able to see all of the records returned by the query for reference whilst being able to add new records in a datsheet.
Is this possible?
Regards,
Simon
I've had a good play with DoCmd.Openform but can't work out if it possible to achieve my goal. I have a main form bound to a table on the one side and a datasheet form bound to a query selecting records from both the table bound to the main form and a related table.
The datasheet view form is opened via command button from the main form using DoCmd.Openform. At present this is opensin Edit so that all records matching the where condition are displayed - the where is defined using a control value from the main form - no problem. I want a user to be able to add additional rows to the datasheet view without having to manually enter the foreign key value or lookup manually i.e.
[ValNo] [Date] [Value] [FKRef]
1 10/1/07 100 26 <- existing record
2 10/2/07 300 <- New Record
The key thing here is that the user needs to be able to see all of the records returned by the query for reference whilst being able to add new records in a datsheet.
Is this possible?
Regards,
Simon