Results 1 to 3 of 3
  1. #1
    sammer021486 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    12

    program find button to search whole table


    Is there away that I can use VBA code to tell the Find Button on my form to search the whole table rather than having to select the individual field I would like to search?

    Example

    If I wanted to search for an employee but their name does not exist (typo, etc.), yet I have their ID number. I can just enter their ID number and not have to change the search to now look in the ID field of the table. I can just type the Id number and the whole table will be searched for that number

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    So what happens if you have a field that contains a value that is the same value as the ID number? In reality the user should have no need to know what the primary key is for a specific record as it should be used only for internal purposes for referential integrity and relationships.

    David

  3. #3
    sammer021486 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    12
    Quote Originally Posted by dcrake View Post
    So what happens if you have a field that contains a value that is the same value as the ID number? In reality the user should have no need to know what the primary key is for a specific record as it should be used only for internal purposes for referential integrity and relationships.

    David

    The database is for internal uses only. But a colleage and I sat down and discussed the situation and we came to the conclusion that it was unnecessary to program the button to do that and that the Find button should remain normal.

    We came to the same conclusion as well about their being conflicts between doing a search like that as well. Instead of primary keys it was phone numbers that were being found that contained a match to the ID number

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

Similar Threads

  1. Do i need a custom program for this?
    By hokie in forum Programming
    Replies: 9
    Last Post: 07-17-2009, 06:27 AM
  2. Replies: 4
    Last Post: 07-16-2009, 02:42 AM
  3. Set focus to another program
    By DrewB in forum Programming
    Replies: 1
    Last Post: 06-24-2009, 06:38 AM
  4. Find Record button error
    By Zedlexx in forum Forms
    Replies: 0
    Last Post: 03-11-2009, 09:26 AM
  5. Search and Clear button
    By polk383 in forum Programming
    Replies: 1
    Last Post: 08-30-2006, 08:51 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