Results 1 to 8 of 8
  1. #1
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39

    Search Records

    I want to create a Form with just one button that a user would click and then ask to enter a "Unit No". This would then open a form named "Final" and search for the record with that "Unit No".



    Any help would be greatly appreciated!

    Thanks in advance

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  3. #3
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39
    hey this doesn't really help because it is about creating a query...i want to open a form and find a record...

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Quote Originally Posted by desibabu90 View Post
    hey this doesn't really help because it is about creating a query...i want to open a form and find a record...
    I suggest you watch the entire video again. And if you still don't understand the importance of the MainQuery and the search form, then tell us the part that is particularly complex or confusing. If, however, in the meantime, you find a way to do this without a query, please post the solution so we can all benefit.

    Good luck with your project.

  5. #5
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39
    Quote Originally Posted by orange View Post
    I suggest you watch the entire video again. And if you still don't understand the importance of the MainQuery and the search form, then tell us the part that is particularly complex or confusing. If, however, in the meantime, you find a way to do this without a query, please post the solution so we can all benefit.

    Good luck with your project.
    i did watch the whole video..the reason why I cannot use a query is because on the form I have fields where I am going to need the user to enter data that will be recorded in a separate table. I saw the code for opening the query which I can use to open the Form but then how do I code the search for a record...

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    I want to create a Form with just one button that a user would click and then ask to enter a "Unit No". This would then open a form named "Final" and search for the record with that "Unit No".

    Any help would be greatly appreciated!

    Thanks in advance
    Seems like you need a method to get the Unit No from the User.
    Could be a form with a text box or combobox, could be a msgbox/inputbox. Then use the data they have entered
    in a DoCmd.OpenForm "Final" with an OpenArgs parameter.

    There is an example at
    http://office.microsoft.com/en-us/ac...001232773.aspx

    If you use a form with a combobox for UnitNo and let user select one, then this video may be of use
    http://www.datapigtechnologies.com/f...tomfilter.html

  7. #7
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39
    Quote Originally Posted by orange View Post
    Seems like you need a method to get the Unit No from the User.
    Could be a form with a text box or combobox, could be a msgbox/inputbox. Then use the data they have entered
    in a DoCmd.OpenForm "Final" with an OpenArgs parameter.

    There is an example at
    http://office.microsoft.com/en-us/ac...001232773.aspx

    If you use a form with a combobox for UnitNo and let user select one, then this video may be of use
    http://www.datapigtechnologies.com/f...tomfilter.html
    ok thanks..i will look into this and report back..

  8. #8
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39
    if anyone wants to know how to solve this..i got it from here:

    http://bytes.com/topic/access/answer...ate-new-record

    you do have to use the openagrs parameters

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

Similar Threads

  1. Search for multiple records
    By Blake in forum Queries
    Replies: 1
    Last Post: 08-23-2013, 03:17 AM
  2. Complex search through strings in records
    By pkstormy in forum Code Repository
    Replies: 2
    Last Post: 03-17-2012, 11:25 AM
  3. Search records and return message.
    By sYn in forum Programming
    Replies: 4
    Last Post: 01-07-2011, 11:21 PM
  4. Search 17,000 records
    By dibblejon in forum Forms
    Replies: 1
    Last Post: 02-25-2010, 08:01 AM
  5. Recalling Records from a Combo search
    By Dreamcatcher in forum Forms
    Replies: 0
    Last Post: 08-18-2008, 07:33 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