Results 1 to 3 of 3

Thread: One form for filtered records and Data Entry?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Location
    Surrey, UK
    Posts
    163

    One form for filtered records and Data Entry?

    Is it possible to have one form that displays a specific record when you click one button and then use the same form as a data entry form if you click a different button?

    The form wouldn't be open twice simultaneously, but I am trying to not have to duplicate the form for these two operations and then need to update them both if I change anything????

    (For the specific record button i just use the button "wizard" in Access that writes the code to filter the records)

    Currently for the data entry form it's identical to the other except the data entry property is set to 'yes'

    Is it possible to write a small bit of code that sets this property if you click the button for a new record???

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Since you are still using wizards... yeah its probably possible. Have a look at the form properties...

    Code under the button would probably be something like:
    VB Code:
    1. Me.AllowEdits = not me.allowedits 'True
    Set to true to allow editting, and false to be read only... You could use a toggle button, which would be in and out with the above code


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Location
    Surrey, UK
    Posts
    163
    Wizards are useful for writing the code behind buttons for operations you can't be bothered to write it for...or simply don't know it!

    That info helped, thanks!

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