Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Ok try replace dim rs as recordset with dim rs as dao.recordset






    Sent from my iPhone using Tapatalk

  2. #17
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    So you could have up to 6 IDLead values for each IDPaper or could it be more? And on your report, does it show all 6 text boxes but only shows data in the ones that have IDLead values? Maybe give us a sample of what your Report should look like with some sample data.

  3. #18
    boboivan is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Dec 2015
    Posts
    65
    @Andy49
    I've made the replacement you've suggested and I still get Run-time error '3061': Too few parameters. Expected 1: line Set rs = db.OpenRecordset("TestQuery")

    @Bulzie
    Yes to all your questions. May be could be more than 6 IDLeads, but no more than 15. The report should look something like that:

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	17 
Size:	50.2 KB 
ID:	26904

  4. #19
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Your "testquery" can't be called as it looks for a value idpaper Where is this value?


    Sent from my iPhone using Tapatalk

  5. #20
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The point is that in my table I have a field with multiple values (ex: John, Beth, Ruth).
    The problem, IMO, is that you are using a multi-value field. If you change the design to a standard table design, what you are trying to do would be easier.
    Try Googling "Multi value fields".

    AFAIK, most Access programmers think "Multi-value fields", "Look-up fields and "Calculated fields" are not considered to be good programming practice.

  6. #21
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    DB11.zip

    Is this any use?

  7. #22
    boboivan is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Dec 2015
    Posts
    65
    YES Andy!

    This is what I need!

    Thx a lot!

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

Similar Threads

  1. Replies: 4
    Last Post: 02-22-2016, 04:01 AM
  2. Replies: 3
    Last Post: 02-07-2016, 10:49 AM
  3. Query to find Values that do NOT exist
    By SoonerLater in forum Queries
    Replies: 4
    Last Post: 09-19-2015, 06:29 PM
  4. Find difference of values between dates
    By Miquel1 in forum Queries
    Replies: 8
    Last Post: 12-10-2013, 10:37 AM
  5. find out values between two dates column
    By learning_graccess in forum Queries
    Replies: 3
    Last Post: 04-20-2012, 04:17 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