ms access - copy value entered in unbound textbox to label after pressing button -
i have unbound text box on form admin can enter date of when records last updated. want date copied label after pushing button holds date instead of disappear after closing form.
does know if possible , how possible?
for creating variable can used after form closed:
- create new module (in code window, click 'insert | module'
insert variable name(s) , types want available everywhere. i.e.
global dtlastupdated date
global strsavesomename string
save module mdl_globals
- add code wherever needed set variable, can reference anywhere.
if use during form, use following: 'lblforunbound' label field , 'txtunbound' unbound text box
me.lblforunbound.caption = me.txtunbound.text
Comments
Post a Comment