Here's a challenge for a kind of dataentry form I have been creating for years, but in a different language:
--The form has a pageframe with 2 (or more) pages. 2 is enough most of the time.
--The first page contains a datasheet with all the records in a table, view or dynaset you want to work in. The fields in this datasheet are read-only. It's just for lookup.
--The user scrolls through the datasheet on page 1 and highlights a row by clicking on it anywhere.
--The form then automatically switches to Page 2, which presents the fields of the row the user clicked on. These are represented in form view format and can be edited.
{The way I have been doing this, when the user then clicks Save or Cancel, Page 1 is re-activated. This part I can handle).
In Access, it appeared to me that I wanted to place a subform in the datasheet view on Page 1 of the pageframe, give it a controlsource of one of my tables, and for each of 3 or 4 columns in the datasheet, add Click event code to switch to page 2. Here's what I'm not clear on:
In effect, the table in the datasheet is the parent. The fields on page 2 would be from that table or from a query based on that table and related 1:1. But in Access the assumption seems to be that the subform's datasheet is a child of the table that is the form's recordsource.
It seems I need to do some trickery to the Link properties for child and parent so that the subform always shows ALL rows of the table, but the FORM (i.e. Page 2) shows only the field of the current row.
Any suggestions? Is this something y'all do all the time? If not, when I get it working I'd be happy to post a prototype form somewhere...
--The form has a pageframe with 2 (or more) pages. 2 is enough most of the time.
--The first page contains a datasheet with all the records in a table, view or dynaset you want to work in. The fields in this datasheet are read-only. It's just for lookup.
--The user scrolls through the datasheet on page 1 and highlights a row by clicking on it anywhere.
--The form then automatically switches to Page 2, which presents the fields of the row the user clicked on. These are represented in form view format and can be edited.
{The way I have been doing this, when the user then clicks Save or Cancel, Page 1 is re-activated. This part I can handle).
In Access, it appeared to me that I wanted to place a subform in the datasheet view on Page 1 of the pageframe, give it a controlsource of one of my tables, and for each of 3 or 4 columns in the datasheet, add Click event code to switch to page 2. Here's what I'm not clear on:
In effect, the table in the datasheet is the parent. The fields on page 2 would be from that table or from a query based on that table and related 1:1. But in Access the assumption seems to be that the subform's datasheet is a child of the table that is the form's recordsource.
It seems I need to do some trickery to the Link properties for child and parent so that the subform always shows ALL rows of the table, but the FORM (i.e. Page 2) shows only the field of the current row.
Any suggestions? Is this something y'all do all the time? If not, when I get it working I'd be happy to post a prototype form somewhere...