Tezcatlipoca
Registered User.
- Local time
- Today, 22:59
- Joined
- Mar 13, 2003
- Messages
- 246
Hi all,
Just a quickie. I have a sub-form (frmLogs) that sits within a main form (frmView). The main form takes care of the client's details (say, Mr Bloggs), the sub-form (which has its client number field linked to the master form's client number field, so only shows data relevant to that client) records the details of that client's orders (so Mr Bloggs' orders for a Giraffe and a packet of Crisps are listed as separate sub-form records).
All this works perfectly.
Also on the main form are two locked textfields. One has the username of the currently logged in user; the other the current date and time.
These fields are replicated on the subform, but are currently blank and editable.
I now want to stamp a new record on the subform with the login name and time of the database user. My question is, when clicking to add a new record button on the subform, how do I get the LoginName field and Time field on the subform to automatically fill out with the data from the LoginName field and Time field on the main form?
Just a quickie. I have a sub-form (frmLogs) that sits within a main form (frmView). The main form takes care of the client's details (say, Mr Bloggs), the sub-form (which has its client number field linked to the master form's client number field, so only shows data relevant to that client) records the details of that client's orders (so Mr Bloggs' orders for a Giraffe and a packet of Crisps are listed as separate sub-form records).
All this works perfectly.
Also on the main form are two locked textfields. One has the username of the currently logged in user; the other the current date and time.
These fields are replicated on the subform, but are currently blank and editable.
I now want to stamp a new record on the subform with the login name and time of the database user. My question is, when clicking to add a new record button on the subform, how do I get the LoginName field and Time field on the subform to automatically fill out with the data from the LoginName field and Time field on the main form?