Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    cardgage is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    50
    Haha no worries, the help is much appreciated!

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try this sample. The Orange TextBox does not need to be there.

  3. #18
    cardgage is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    50
    Thanks so much for the help! However, the same problem is occurring. PatientID gets passed into frmAdmissions OK to view existing admissions for that patient, but when I try to add a new record PatientID is lost (as evidenced by the orange text box being empty and by Access saying that the admission can't be tied to a patient).

    Any other ideas?

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Go to the frmAdmission form in design view and on the Data tab of the properties sheet set DataEntry to YES and try in again.

  5. #20
    cardgage is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    50
    Changed it, still doesn't keep PatientID...how exactly does OpenArgs store the data in the string? Is everything I had with the VB code OK with that?

  6. #21
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you trying to add more than one record at a time without returning to frmMain?

  7. #22
    cardgage is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    50
    My intention was to have frmAdmission open up (with the selected PatientID active) and use it only to enter a new record (admission) for the selected patient. In other words, I wanted the selected PatientID to remain active until frmAdmission was closed.

  8. #23
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    See if this is closer to wnat you wanted.

  9. #24
    cardgage is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    50
    Wow, that's perfect, thanks!

    One final question...say I add a new patient to the patient list that cmbPatientSelect searches for using the cmdNewPatient button. Then, I want to add an admission for that patient using the cmdNewAdmission button. Currently, I have to close the database and reload it. Is there a way to refresh the data list so I don't have to close out of the program?

    Thanks again for all of your help...very much appreciated!

  10. #25
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try this one!

  11. #26
    cardgage is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    50
    Perfect! I've implemented these into the active database, and everything is working well. Thanks so much for your help!

  12. #27
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad we could be of help. Code is sooo much easier to work in.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Command button code to clear form
    By windwardmi in forum Forms
    Replies: 15
    Last Post: 11-21-2010, 03:21 PM
  2. Use a command button to open a form
    By johnpaul in forum Forms
    Replies: 24
    Last Post: 09-23-2010, 12:29 PM
  3. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  4. Export Command Button in Form
    By jjmartinson in forum Forms
    Replies: 3
    Last Post: 08-25-2009, 01:28 AM
  5. Adding Command Button To Form
    By uneek78 in forum Forms
    Replies: 7
    Last Post: 03-27-2009, 07:43 PM

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