Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412

    WHERE ((InStr([enter nums],[myTable].[myField])>0));
    sorry that won't necessarily work. If you have an employee of 123 that will also return 1234, 2234, 2341 etc

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Quote Originally Posted by CJ_London View Post
    sorry that won't necessarily work. If you have an employee of 123 that will also return 1234, 2234, 2341 etc
    I understand what you meant but example is flawed. 123 would not return 2234 or 2341.

    Would have to use a field where values are all same length, such as an assigned EmployeeNumber, not autonumber ID.
    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.

  3. #18
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    but example is flawed
    oops

    you could use

    WHERE InStr("," & replace([enter nums]," ","") & ",","," & [myTable].[myField] & ",")>0

    but that kills any use of indexing

  4. #19
    CORINEREYES is offline Novice
    Windows 11 Access 2016
    Join Date
    Jan 2023
    Posts
    18
    Hi Orange,

    Sorry for my late reply.

    Not 5000 employees renew their contracts at the same time. It is according to the month of their hire date, renewal is annual.

    The only issue i have is printing transmittal for the some employees . Like the one i attached.

  5. #20
    CORINEREYES is offline Novice
    Windows 11 Access 2016
    Join Date
    Jan 2023
    Posts
    18
    Quote Originally Posted by Minty View Post
    A multi select list box will work but will be cumbersome with 5000 + records.

    In these circumstances I would make a list box with a filter to get you to a more restricted list (Type in "Smith" and it would list all the Smith's for example).
    I would have a second list that you would add the selected records to you can add and filter to your hearts content.
    Once complete use that second list to drive the query.

    I would probably store the selected items in a table called tb_ReportEmpIDs - simply join the report Empid to it, you can use it anywhere you need then.

    You could go a stage further and store named lists and then edit them if they get used on a regular basis.
    The same list box form would allow you to edit the existing lists.

    There is a simple version of this type of thing here:
    http://www.baldyweb.com/multiselect.htm

    PBaldy's site.
    Hi Minty,

    This is the best applicable suggestion , i will apply it and let everyone know the outcome.

    I thought append can do the task easier, because i dont want to code and make long and cumbersome method just for the transmittal.

    Append criteria works on texts, dates but not with numbers.

    Thank you guys for your efforts and suggestions.

  6. #21
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    you might find the form example in this link of use
    https://www.access-programmers.co.uk...-boxes.323395/

  7. #22
    CORINEREYES is offline Novice
    Windows 11 Access 2016
    Join Date
    Jan 2023
    Posts
    18
    Quote Originally Posted by CJ_London View Post
    you might find the form example in this link of use
    https://www.access-programmers.co.uk...-boxes.323395/
    This is useful for my project, thanks so much.

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

Similar Threads

  1. Append data based on criteria help
    By icerebro in forum Queries
    Replies: 3
    Last Post: 12-29-2017, 11:13 AM
  2. append query criteria
    By slimjen in forum Queries
    Replies: 4
    Last Post: 02-05-2016, 06:49 AM
  3. Append Query destination Criteria
    By armyofdux in forum Queries
    Replies: 1
    Last Post: 03-09-2015, 09:20 AM
  4. Append and Update criteria
    By gheaney in forum Queries
    Replies: 6
    Last Post: 10-09-2011, 07:48 AM
  5. Append query double criteria
    By Gerry in forum Queries
    Replies: 0
    Last Post: 03-23-2010, 03:55 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