Results 1 to 3 of 3
  1. #1
    akika is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    27

    Open selected record - access2016

    hi,


    Pls help
    In access 2016, i have one main table (tbl_employee)
    and create 3 different forms based and uses that main table fields.
    form1RW : all fields are in read-write
    form2RWRO : some fields in readonly and some in read-write
    form3RO : all fields in read-only


    I've created another form4ListAll in continuous and which display show records under certain criteria.
    With a button (btn_openRec) on that form4 which when click will open the selected record.




    Embedded Macros:


    OpenForm
    Form Name
    View Form
    FilterName
    where condition == '[ID] ="&[ID]
    Window mode Normal


    Issue is that when i click on the "Open Record' Button its opening a blank form - the data for that record is not appearing in the being called form.

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Not an answer to your question but I suggest you replace the embedded macro with vba.

    Why on earth do you have three different forms?
    If the idea is related to the permission levels of different users, you only need one form and set different conditions based on the logged in user.
    Maintaining multiple forms is both unnecessary and will massively increase your workload as a developer.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    akika is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    27
    do u have an example for the vba ?
    onclick event procedure and what piece of codes are to be added pls?

    On form load hve:

    Private Sub Form_Load()
    DoCmd.GoToRecord , , acNewRec
    End Sub

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

Similar Threads

  1. Replies: 19
    Last Post: 01-03-2017, 02:23 PM
  2. Button open selected record in subform table, in new form
    By BrainExplodingFromCoffee in forum Forms
    Replies: 4
    Last Post: 04-12-2016, 02:19 PM
  3. Replies: 16
    Last Post: 02-13-2016, 10:21 AM
  4. Replies: 5
    Last Post: 06-19-2013, 08:01 AM
  5. Replies: 3
    Last Post: 09-20-2012, 11:09 AM

Tags for this Thread

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