Jason...
Possibility 1: You've got to make sure you've first USEd Offices before you attempt to SEEK against it. You could just put
IF NOT USED("Offices")
USE Offices
ENDIF
immediately before your SEEK.
Possibility 2: In your code, you say "Offices" in one place, and "Office" (without the "s") in another.
Scott
>Hi Cetin -
>
>Thanks for your reply today concerning passing parameters from a parent form to a child. I appreciate your help. Another developer has been trying to help me today with this "proceedure" as well, but I still haven't been able to get it to work. I assure you, it isn't b/c of your (or his) lack of good info, it is just that my programming/coding experience is nill, and everything is an epic battle for me!
>
>I would like to lay out what I have done, and hopefully you can pinpoint where I have dropped the ball.
>
>To refresh your memory, I have a form called OFFICES with a cmd button called ASSIGN CONTACTS that fires my OFFICE_ASSIGNMENTS form.
>
>I want to pass a parameter to the child form, b/c when I click on the cmd button, the field, nofficeid of the offices form isn't placed into the nofficeid field of the OFFICE_ASSIGNMENTS table like I want.
>
>So, in the init event of my OFFICE_ASSIGNMENTS table, I have placed the code:
>
>lparameters tcOfficeID
>=seek(tcOfficeID,"offices","office.nofficeid")
>
>** Based upon the code you gave me earlier today. I hope I have filled in the correct info for the second line of code.
>
>Also, I have set the data session to Private Data Session.
>
>
>Then, I went over to my offices form and in my click event for my command button that fires my OFFICE_ASSIGNMENTS table, I have placed the code:
>
>DO FORM office_assignments WITH office.nofficeid
>
>
>When I go to run my form and click the command button, I receive a message that says, alias not found.
>
>Do you see where I am butchering this code..ha!
>
>TIA
>
>Jason
Scott D. Grabo
Chief Information Officer
Occupational Health Group
First Advantage Corporation