How to create a link to another form to edit the records in a SUBFORM?

snehal0909

Registered User.
Local time
Today, 13:54
Joined
Feb 4, 2008
Messages
74
Hi,

I am trying to create incident mnagement database.
in the main form (datasheet view) of my database i am able to click on a record to open it in form view & edit it & when i close it, it saves the data i entered & shows on the gridview straight away. I was able to do it using vba code & help of a nice guy.

I have a similar problem this time, the only difference is that i am trying to set up the same for A SUB FORM
See this picture

Here is the database

Please help!
 
If the SubForm had been edited directly as a SubForm then Access would have filled in the ForeignKey for you. Since you are opening another form to do the Add, you need to pass the ForeignKey to the next form. See attached.
 

Attachments

Thank you, you should start a forum of your own!
I posted 5 threads & the 1st got answered very well (by you)
and this one got answered by you.
The 3 threads wasted my 4 days with no reply from anybody.

After posting this thread, i started to think "where is the Rural guy?"

Thanks mate!
 
The 3 threads wasted my 4 days with no reply from anybody.
Actually, sometimes you just gotta be patient as a lot of it depends on who shows up on the board when, as we're all volunteers here. :)

But, RG is an integral part of AWF and it wouldn't be the same without him.
 
Thanks mate, I think you're right.
I just wanted the db to finish easter weekend.
That's probably why i was impatient.

Oh well, at least my db is ready to populate.
Will add the queries & reports later
(i can add more reports & queries after my database is populated right?)
 
Just glad I could help. Have a great Easter weekend.
 

Users who are viewing this thread

Back
Top Bottom