Results 1 to 2 of 2

Thread: Read-only fields in Add New

  1. #1
    Mike Guest

    Read-only fields in Add New

    I need help doing #2 below:

    My table might have a DateAdded field.

    1) When the record is edited, the field should be visible, but read-only.

    This seems to work:
    MyDb.dbEditFlds = "UserID,DateAdded[" & Date & "]"
    MyDb.dbEditUpdateROFlds = "DateAdded"

    2) I need to hide this field when a new record is added, but have it default to today's date.

    How can I hide fields or make them read-only for adding records?

    Thanks!

    Mike


  2. #2
    Bruce Guest

    Read-only fields in Add New (reply)

    I have the same problem. I have a list of tasks filtered by personID.
    When a new task is added, personID should default to the Session("PersonID&#34,
    but it should not show on either the Update, Edit or Add New forms.

    ------------
    Mike at 7/28/99 10:40:09 AM

    I need help doing #2 below:

    My table might have a DateAdded field.

    1) When the record is edited, the field should be visible, but read-only.

    This seems to work:
    MyDb.dbEditFlds = "UserID,DateAdded[" & Date & "]"
    MyDb.dbEditUpdateROFlds = "DateAdded"

    2) I need to hide this field when a new record is added, but have it default to today's date.

    How can I hide fields or make them read-only for adding records?

    Thanks!

    Mike


Posting Permissions

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