PERFECT, IT WORKED! Exactly what I needed. Thanks so much. I made a database 10 or 11 years ago and lost the code to it 5 years ago. Only have and mde file and the back end data files. It was getting too old and I wanted to do things differently. So I am starting all over again.
Thanks...
I have attached a screen shot of my form. Just created it today and only entered 2 names for testing. I want to click on any last name and have the main form go to that name.
Thanks,
Kennyhttp://www.kcphoto.com/xxxMisc/FormPic.jpg
I tried your suggestion. Here's the code:
Forms!Clients.Recordset.FindFirst "[CLIENTS KEY] = Me![CLIENTS KEY]"
It gave an error saying: The Microsoft Access database engine does not recognize 'Me!CLIENTS KEY' as a valid field name or expression.
This is the Primary Key field for this table...
The main form does have the client's name. The main form shows one record. The subform shows all clients names down the right hand side of the form. I want to click on a name in the subform and have the main form go to the record for that name.
I'm listing all my attempts to try to clear...
I just tried this and it didn't work:
DoCmd.GoToRecord acDataForm, "Clients", acGoTo, Forms!Clients.[Clients List subform].CurrentRecord
Run time error 438
"Object doesn't support this property or method"
Kenny
I haven't used Access for about 10 years and I just started a new database with Access 2007. I have a clients form and have added a subform with all names from the same table as the main form. I want to click any name and have the main form go to that record. I know I'm being lazy, but could...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.