Results 1 to 2 of 2

Thread: select a DataCombo entry

  1. #1

    Thread Starter
    Lively Member mdsoren's Avatar
    Join Date
    Apr 2002
    Location
    Iowa, USA
    Posts
    113

    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

  2. #2
    Fanatic Member
    Join Date
    Nov 2001
    Location
    Bangkok
    Posts
    969

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width