Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389

    data find combo box problem

    Please check this form. When I set the data entry option in data tab in the property of this form as yes then the search record combo box created in the form does not work.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Data Entry to Yes only allows you to add new records.

    Try Googling ?

    https://support.microsoft.com/en-gb/...0-4aa4acd8fe87

    https://www.google.com/search?q=data...hrome&ie=UTF-8

    Although this link states that is not the case https://learn.microsoft.com/en-us/of...form.dataentry, but anyway you do not get to see any exising records.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Welshgasman View Post
    Data Entry to Yes only allows you to add new records.

    Try Googling ?

    https://support.microsoft.com/en-gb/...0-4aa4acd8fe87

    https://www.google.com/search?q=data...hrome&ie=UTF-8

    Although this link states that is not the case https://learn.microsoft.com/en-us/of...form.dataentry, but anyway you do not get to see any exising records.
    yes i have searched on google. nothing was found there. i want both these conditions to be at the same time. , when i turn on data entry than the combo box stops working and if i want to take service of the combo box i have turn off the data entry.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Data entry is very badly named. Set it to no. You can still carry out data entry with new or existing records.
    Understand what it is doing by reading those links.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi
    Welshgasman has given you all the necessary information regarding DataEntry properties.

    You can set the On Load properties of the Form to go to a New Record and then you can still use
    the Combobox to Search

    See attached
    Attached Files Attached Files

  6. #6
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Welshgasman View Post
    Data entry is very badly named. Set it to no. You can still carry out data entry with new or existing records.
    Understand what it is doing by reading those links.
    Thank you very much, I had searched a lot on Google but I did not find such good articles, now I have understood this. I write some code in the open form event that opens the form as a blank form as soon as it is opened (kind of like a form ready for data entry) Now the problem is that actually
    I have prepared a record register in which double clicking on any old record opens that record for editing in that form.
    But the problem comes that if I write the coding to open a new record in the open form, then that old record is not opened because that coding triggers the opening of a new empty form and if I go to the data entry option and say yes, then the problem is solved. The solution becomes what is this?
    The coding for open form is this...

    DoCmd.RunCommand (acCmdRecordsGoToNew)
    or
    DoCmd.GoToRecord , , acNewRec

  7. #7
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi
    Well the problem is you need to decide what you want to do.

    If you have a Form that lists all records with a Double Click Event to Open a specific Record then that is what you need to use.
    Remember that the Form that Opens to display the chosen record will not need a Combobox for selecting a Record.

  8. #8
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi
    Well the problem is you need to decide what you want to do.

    If you have a Form that lists all records with a Double Click Event to Open a specific Record then that is what you need to use.
    Remember that the Form that Opens to display the chosen record will not need a Combobox for selecting a Record.
    Welcome mike,
    Sorry I could not see your appearance and the file you attached.
    Well actually I want that to use both options. I also want to have find combo box on the form.

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    I just open a form with all records or filtered records. If I want to add a new record I use the * button.
    That is for local db access backends, not remote sql servers.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  10. #10
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    OK Can you upload the database you are using for this?

  11. #11
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    OK Can you upload the database you are using for this?
    ok sir....

    In this, if you make data entry yes in the form property and remove the new record code in the on load event of the form, then it will work well but when you create the "find combo box" in the main form, it will not work.
    Attached Files Attached Files

  12. #12
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi Deepak

    I made a couple of changes as follows:-

    OfferEntry Command Button on Dashboard I added the line DoCmd.GoToRecord,,acNewRecord

    I set the DataEntry to No on the Offer Entry Form
    I removed the On Load event from the Offer Entry Form

    Now when you click the Command Button "OfferEntry" on the Dasjboard it takes you to a New record

    Now when you DoubleClick the OfferID on the FormOfferRegister it opens that specific Record

    Don't see a need for any Combobox in this process.
    Attached Files Attached Files

  13. #13
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi Deepak

    I made a couple of changes as follows:-

    OfferEntry Command Button on Dashboard I added the line DoCmd.GoToRecord,,acNewRecord

    I set the DataEntry to No on the Offer Entry Form
    I removed the On Load event from the Offer Entry Form

    Now when you click the Command Button "OfferEntry" on the Dasjboard it takes you to a New record

    Now when you DoubleClick the OfferID on the FormOfferRegister it opens that specific Record

    Don't see a need for any Combobox in this process.
    hello mike,
    now check the search combo box built in the "offer entry form", it is not working.
    Attached Files Attached Files

  14. #14
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi Deepak
    When you use the frmOfferRegister to select a specific record your are applying a Filter to the Form for that selected Record.

    Now when you use the Command Button to for Offer Entry you would need to remove the Filter by clicking the Filtered Option on the Navigation Bar.
    This removes the filter and now you can use the Combobox to select a specific record.

    This is the best you are going to achieve.
    Attached Files Attached Files

  15. #15
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi Deepak
    When you use the frmOfferRegister to select a specific record your are applying a Filter to the Form for that selected Record.

    Now when you use the Command Button to for Offer Entry you would need to remove the Filter by clicking the Filtered Option on the Navigation Bar.
    This removes the filter and now you can use the Combobox to select a specific record.

    This is the best you are going to achieve.
    Oh my genius genius genius you are absolutely right, now just navigation bar is not shown on this form, how will that happen?

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

Similar Threads

  1. Replies: 3
    Last Post: 02-11-2020, 02:44 PM
  2. Replies: 4
    Last Post: 11-22-2018, 05:49 PM
  3. Replies: 39
    Last Post: 03-15-2017, 07:34 PM
  4. Find data in a combo box
    By TheHarleygirl2005 in forum Forms
    Replies: 4
    Last Post: 01-04-2013, 01:01 PM
  5. Replies: 9
    Last Post: 04-28-2010, 11:20 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