Results 1 to 6 of 6
  1. #1
    Leonidsg is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    68

    Two forms: one for editing, one for new records?

    Hey all,

    So I have a question about creating forms with two purposes in mind. I would like a form to create new records, it seems the easiest way is to set the DataEntry to "Yes" that was when people open a form they wont accidentally edit an existing record. However I would like the same form to be searchable so records can be edited. I think it may be best to have two forums, one for editing records and another one for new records. Is this poor design or is there a better way? Also I was wondering in the editing form I want my Medical Record Number field "MRN" to be searchable, that way I can type in the MRN and the fields are populated for editing and adding additional data if gathered. I was going to use "Event" "AfterUpdate" property for the field, is this the best way?

    Thank you for the help.

    Lenny

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I typically use one form. You can control which way it opens with the arguments of OpenForm. Try the combo box wizard for searching, the third option "Find a record".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Leonidsg is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    68
    Can you please explain where I can find the arguments of OpenForm, is that the same a Porperty sheet, "Data". What settings would you recommend. Ideally I would like to form to load blank ready for data entry, but still be able to search using the combobox to check if a record exists.

    Thank you
    Lenny

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can find a pretty good description about all the available arguments in help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Leonidsg is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    68
    I geuss my question is if Macro OpenForm is the same as making a "Control Button" with the action "OpenForm". Thank you again for all your help.

    Lenny

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I personally use VBA, but the macro version would have the same arguments available, so you should be able to use either.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-07-2012, 12:50 PM
  2. Editing records
    By shariq1989 in forum Forms
    Replies: 1
    Last Post: 08-05-2012, 02:19 AM
  3. Replies: 17
    Last Post: 11-24-2011, 03:37 AM
  4. prevent editing current entries in forms
    By Chazcoral in forum Forms
    Replies: 1
    Last Post: 05-20-2010, 06:49 PM
  5. Editing forms suddenly gone wrong
    By twinfair in forum Forms
    Replies: 3
    Last Post: 02-19-2010, 07:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums