Results 1 to 3 of 3
  1. #1
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149

    call unexpected form

    I created a form with a "CALL" button to open another form with simple code:
    Code:
    DoCmd.OpenForm "frmPayItemEdit", , , , , acDialog, 5
    frmPayItemEdit looks like below
    Click image for larger version. 

Name:	pic1.png 
Views:	15 
Size:	24.3 KB 
ID:	47159
    Then, I create copy this form and changing some codes to save as another form.
    I just change the "CALL" button to open form frmReptItemEdit which should looks like below
    Click image for larger version. 

Name:	pic2.png 
Views:	15 
Size:	23.9 KB 
ID:	47160
    But it is strange.


    When click this "CALL" button, it shows frmPayItemEdit (ie the first photo) not frmReptItemEdit
    please help.

  2. #2
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149
    Sorry. please ignore this post.
    It suddenly works.

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Eventually, you should learn how to reuse forms and reports (and other objects now that I think of it).
    You don't create 4 look-alike forms because you use them 4 different ways; you create one form and use it 4 different ways.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. unexpected Warning message in form
    By George in forum Macros
    Replies: 4
    Last Post: 02-17-2017, 07:25 PM
  2. Replies: 11
    Last Post: 01-16-2017, 11:46 PM
  3. Unexpected datatype
    By George in forum Access
    Replies: 6
    Last Post: 03-23-2015, 08:00 PM
  4. Using a check box to call a form
    By mrdirectorsir in forum Access
    Replies: 1
    Last Post: 06-02-2014, 05:05 PM
  5. Replies: 3
    Last Post: 12-26-2011, 10:45 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