Hi there!
I'm trying to create a template form which has buttons on it which perform record manipulation, eg Add, Delete, Next Record, Previous Record etc. In order to do this I really need to automate most of the processes when the form loads. The only thing I want to change when I re-use the form for another table is the record source.
My problem is this. How do I get the form to obtain the primary key from the current record set? I suspect it has something to do with dao.index but i'm not too sure on the coding?
Any ideas or help would be very much appreciated. Thanks!
I'm trying to create a template form which has buttons on it which perform record manipulation, eg Add, Delete, Next Record, Previous Record etc. In order to do this I really need to automate most of the processes when the form loads. The only thing I want to change when I re-use the form for another table is the record source.
My problem is this. How do I get the form to obtain the primary key from the current record set? I suspect it has something to do with dao.index but i'm not too sure on the coding?
Any ideas or help would be very much appreciated. Thanks!