Search results

  1. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    This code works. Opens to ContactDetail_frm new record with T1_FirstName_fld with focus. DoCmd.OpenForm "ContactDetail_frm", acNormal, "", "1=0" On Error Resume Next DoCmd.SearchForRecord , "", acFirst, "[ContactID]=" & Nz(DMax("[ContactID]", Form.RecordSource), 0)...
  2. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    I have a Tab Group on ContactDetail_frm which always opens to tab 0 with focus set to contact search combo box...I can live with this fact, just would of liked it to open from this form when button click with Tab 0 FirstName_fld with focus.
  3. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    Tab order not going to work in my case. :oops:
  4. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    I have not restricted users from adding new records, I just would like the form to open on a new record with FirstName_fld with focus.
  5. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    DoCmd.OpenForm "ContactDetail_frm", acNormal, "", "1=0", , acDialog Forms("ContactDetail_frm").T1_FirstName_fld.SetFocus Opens to new form, focus not set to FirstName_fld. When I close form I get error "... Cannot find the referenced form 'ContactDetail_frm'."
  6. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    Good call, I had a typo. Error gone. Form opened just not on new. Getting closer. Looking into it now.
  7. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    I get "Application-defined or object-defined error"
  8. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    Contact_frm is a split form with a button "Add Contact" DoCmd.OpenForm "ContactDetail_frm", acNormal, "", "1=0", , acDialog when clicked it opens ContactDetail_frm. In ContactDetail_frm is a Private Sub NewContact_cmd_Click DoCmd.GoToRecord , "", acNewRecDoCmd.GoToControl "FirstName_fld"...
  9. S

    Solved Open Form B from Form A button click and after Form B opens call Sub on From B

    <SOLVED - See Post #20> I have a form called Contact_frm with a button named NewContact_cmd. I'd like to click the button and open ContactDetail_frm calling a Private Sub NewContact_cmd_Click in ContactDetail_frm. Form: Contact_frm Form: ContactDetail_frm Button: NewContact_cmd Private...
  10. S

    Weird behavior on form, fields go blank when clicking on row

    Thanks, I'll take a look at it.
  11. S

    Weird behavior on form, fields go blank when clicking on row

    I downloaded your demo file and have been looking at it. I am not fully understanding what's going on. Could you elaborate a bit on the theory of this approach and how I could implement it?
  12. S

    Weird behavior on form, fields go blank when clicking on row

    Found this on answers.microsoft.com Scottgem MVP | Volunteer Moderator | Article Author Replied on May 20, 2018 This is an issue with using Continuous form or datasheet view forms. Those form modes are really ONE set of controls repeated multiple times. So when you change one control it...
  13. S

    Weird behavior on form, fields go blank when clicking on row

    Thank you for explaining, makes sense.
  14. S

    Weird behavior on form, fields go blank when clicking on row

    I do! Why or how is this expected behavior? Can share some insight?
  15. S

    Weird behavior on form, fields go blank when clicking on row

    <SOLVED - This is an issue with using Continuous form or datasheet view forms. Those form modes are really ONE set of controls repeated multiple times. So when you change one control it affects all rows. For example: If you have cascading combos with your Car makes and Models. You chose Ford in...
  16. S

    Solved Query in form not populating field

    Yes, I definitely used the wrong save there. Thank you for pointing it out. I'm trying and learning as I go along. The last time I used Access was in the early 2000s. I only picked it back up a month ago.
  17. S

    Solved Query in form not populating field

    This is a really nice and functional address book. Definitely going to be peaking under the hood on this one.
  18. S

    Solved Query in form not populating field

    Thanks for the code modifications. A great example of a similar effect of tabs with just buttons. And it ran faster with better transitions between screens.
  19. S

    Solved Query in form not populating field

    Oh, I think see what you're saying. It seems, Contact_tbl would be the junction table between Company and ContactType? One Company with many Contacts and one ContactType with many Contacts. I may be wrong, cause I have never worked with a many-to-many relationship.
Top Bottom