I have been working with Access for a little while but have never used mainforms/subforms before.
Here is my problem/scenario: I have a main form (frmMain) with a few other forms for data data entry (frmOne, frmTwo, ...). I have the same table (tblCallLog) as the record source for each of these forms. I have used the MainForm and SubForm with the Parent/child linking fields (lngCaseID). I would like to have the data entry in a seires frmOne for first data entry; frmTwo for the next data entry and so on.
When I open frmMain for data entry I create a new record with vba code. When I open frmOne with a command button I would like to show the same record (lngCaseID) as on frmMain but a second set of fields from the underlying table.
I can't make it work. I tried
on click event for the command button -- where stLink is a string with the lngCaseID from the record created on frmMain.
I get the message can't go to the specified record. What else do I need to make this work? any help would be greatly appreciated!!!
/jh
Here is my problem/scenario: I have a main form (frmMain) with a few other forms for data data entry (frmOne, frmTwo, ...). I have the same table (tblCallLog) as the record source for each of these forms. I have used the MainForm and SubForm with the Parent/child linking fields (lngCaseID). I would like to have the data entry in a seires frmOne for first data entry; frmTwo for the next data entry and so on.
When I open frmMain for data entry I create a new record with vba code. When I open frmOne with a command button I would like to show the same record (lngCaseID) as on frmMain but a second set of fields from the underlying table.
I can't make it work. I tried
Code:
docmd.openform frmOne,,, stLink
I get the message can't go to the specified record. What else do I need to make this work? any help would be greatly appreciated!!!
/jh
Comment