Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Synchronizing form interaction

Synchronizing form interaction

Scheduled Pinned Locked Moved Database
c++tutorialhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    john john mackey
    wrote on last edited by
    #1

    Hi. My problem is i want to create a popup form to mimic a modal dialog that is created in MFC/C++. In Form1, i have a button that will open Form2. Form2 will be a generic "prompt" form that gets a user's response to a generic question (I want to reuse Form2 in other instances) and pass back values to the caller. Form2 will have: label text box command button for Ok command button for Cancel Example: (ask for an ID) Form1 caller will pass "Please supply an identifying name" to Form2 label. Form1 caller will user Form2 text box to do other work in Form1. Form1 will need to wait on (synchronize) Form2 for user to provide an answer. Form1 will then do processing on the response the user supplies. Problem: I don't know how to synchronize this sort of action in VBA. For the most part, the interaction between caller (Form1) and Form2 will be simple - show the prompt passed from caller and return the user's reply from Form2's text box. Thank you, John J M.

    M 1 Reply Last reply
    0
    • J john john mackey

      Hi. My problem is i want to create a popup form to mimic a modal dialog that is created in MFC/C++. In Form1, i have a button that will open Form2. Form2 will be a generic "prompt" form that gets a user's response to a generic question (I want to reuse Form2 in other instances) and pass back values to the caller. Form2 will have: label text box command button for Ok command button for Cancel Example: (ask for an ID) Form1 caller will pass "Please supply an identifying name" to Form2 label. Form1 caller will user Form2 text box to do other work in Form1. Form1 will need to wait on (synchronize) Form2 for user to provide an answer. Form1 will then do processing on the response the user supplies. Problem: I don't know how to synchronize this sort of action in VBA. For the most part, the interaction between caller (Form1) and Form2 will be simple - show the prompt passed from caller and return the user's reply from Form2's text box. Thank you, John J M.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I hate it when someone univotes a post with no explanation. You error is that this is a database forum and you are asking a question that requires VBA, I know you think you are using a database - Access but that is because Access should no longer be called a database, abomination maybe but not a database. You will get a much better response in the VB forum. You should also mention that you are using spit MS Access and the version as there are differences that may be critical. A possible answer - define some global variables representing the data, load them from the dataset/recordset or make the dataset/recordset a global. Sorry have not used Access for more than a decade.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups