Results 1 to 11 of 11
  1. #1
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48

    Arrow Queries for forms - identify duplicates

    Hi all

    New to access so trying to get an understanding for what it can do.
    I have a database which tracks exiting staff.
    I want to highlight if the staff member has been previously entered. Is this possible?
    Also, can access learn from previous entries (like excel) and type ahead. I would need this for a supervisor field to speed up the input process.

    Thanks

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    I want to highlight if the staff member has been previously entered. Is this possible?
    use a dlookup function

    Also, can access learn from previous entries (like excel) and type ahead. I would need this for a supervisor field to speed up the input process.
    use a combobox

  3. #3
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48
    Hi Ajax

    Thanks but Im new to Access and not sure how to do it.

    Where does the dlookup go? Im hoping that it would appear inside the form (ie staff member already exists Yes / No)

    I have changed the fields to a combobox - do I need to make any other changes?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Did you mean 'existing' staff?

    Highlight where and if previously entered where? A combobox can be used to present users with list of staff and its AutoExpand feature can fill combobox with item that matches user input as they type.

    Access cannot 'learn' previous entries. However, you can program a form to carry values over to a new record. http://access.mvps.org/access/forms/frm0012.htm
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    I understand you are new to access and new to this forum, but if you need a specific answer you need to provide enough information to enable us to do so, I can't answer this
    Where does the dlookup go? Im hoping that it would appear inside the form (ie staff member already exists Yes / No)
    It can appear on a form (google 'vba dlookup' to find out more) but you need to explain the design and relationships of your tables, your field names and clearly explain what you are trying to do - a more detailed answer depends on all of these things - at what point does it display for example?

    I have changed the fields to a combobox - do I need to make any other changes?
    No idea, it depends on what you are trying to do - and you shouldn't be changing fields to comboboxes except in very limited situations

  6. #6
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48
    Hi all

    Apologies for my wording. I need to keep track of staff as they leave (or exit) with a check list (remove and return building access card, remove access to printer etc). I then have a form to capture the information. I want the ability to type ahead some items of the form based on previous entries (ie supervisor name, business unit etc) to speed up entry by staff. I have hunted through google for the autoexpand function but can not see where it appears. In the field properties, I have the data type set to text, Display control to combo box, row source type table/query but it does not pre-populate. What have I done wrong? Im using Access 2010.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    AutoExpand is a property of combobox - not a function. Set AutoExpand to Yes and the combobox will match user input to items in dropdown list. Did you review the link I referenced in earlier post? Here is another http://www.datapigtechnologies.com/f...combobox3.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48
    Wow - thanks June7 - that video made sense and it works now. However, how do I make the drop down only show an entry once. For instance it shows a whole heap of blanks (due to an upload of previous history).

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Combobox RowSource sql statement like:

    SELECT DISTINCT fieldname FROM tablename WHERE NOT fieldname IS NULL ORDER BY fieldname;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48
    How do I mark as solved?

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Thread Tools dropdown above first post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 9
    Last Post: 08-27-2014, 11:34 AM
  2. Replies: 11
    Last Post: 04-22-2013, 06:13 AM
  3. Forms and queries
    By MalvinkaAccess in forum Access
    Replies: 4
    Last Post: 03-15-2013, 12:25 PM
  4. Querying multiple queries, returning duplicates
    By Gabriel2012 in forum Queries
    Replies: 3
    Last Post: 12-04-2012, 12:39 PM
  5. Replies: 4
    Last Post: 04-01-2009, 08:49 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