-
select a DataCombo entry
I am attempting to make a form switchable from a view-only mode to an editing mode. A record may already contain data
or be a new (blank) record. My view-only mode uses textboxes to display record fields.
When the user logs into edit mode, if they select a record with data already in it, I want the data from the record to trigger
the selected text in the datacombo.
Any suggestions for doing this?
Thanx in advance!
MDS
-
Hi
Just create a Sub that populate your textfields, combos or whatever. Create a Button with the name cmdEdit and if somebody click on it then it opens a editform or if your form have already all the fields on it to edit, you enable the fields. Have on your form a second button "cmdSave". This button is always enabled=false. Only when you are in the edit mode this button changes to enabled=true.
It is a simple way and works well in some of my programs.
Franky