Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It is that field. It's spelled differently in the query than in the table, which is why you get a parameter prompt when you open the query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    tommy93 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    Ok that doesnt seem to fix the problem, i select the fields from the drop down menu in the design view and select them from the table directly in there.

    Is there anything else you did? Or could you upload the sql of it working for you? Cause it makes no difference for me at all...

  3. #18
    tommy93 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    Still cant get this to work... Tried the spelling mistake to no avail?

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This is the query that appeared to work:

    SELECT [Job Form].[Invoice Number], [Job Form].Customer, [Job Form].[Booking Reference], [Job Form].[B/L Number], [Job Form].[Number of Containers], [Job Form].Line, [Job Form].Vessel, [Job Form].ETA, [Job Form].ETS, [Job Form].[Invoice Value (£)], [Job Form].[Cost (£)], [Job Form].[Payment Recieved (£)], [Job Form].[Payment Made], [Job Form].[Payment Made], [Job Form].[Internal invoice number], [Job Form].IntInvoice2, [Job Form].IntInvoce3
    FROM [Job Form]
    WHERE ((([Job Form].[Invoice Number]) Like [forms]![Search]![qinvoice] & "*") AND (([Job Form].Customer) Like [forms]![search]![qcustomer] & "*") AND (([Job Form].[Booking Reference]) Like [forms]![search]![qbooking] & "*") AND (([Job Form].[B/L Number]) Like [forms]![search]![qbl] & "*") AND (([Job Form].Line) Like [forms]![search]![qline] & "*") AND (([Job Form].[Payment Made]) Like [forms]![search]![qlinepayment] & "*") AND (([Job Form].[Internal invoice number]) Like [forms]![Search]![qInternal] & "*")) OR ((([Job Form].[Invoice Number]) Like [forms]![Search]![qinvoice] & "*") AND (([Job Form].Customer) Like [forms]![search]![qcustomer] & "*") AND (([Job Form].[Booking Reference]) Like [forms]![search]![qbooking] & "*") AND (([Job Form].[B/L Number]) Like [forms]![search]![qbl] & "*") AND (([Job Form].Line) Like [forms]![search]![qline] & "*") AND (([Job Form].[Payment Made]) Like [forms]![search]![qlinepayment] & "*") AND (([Job Form].IntInvoice2) Like [forms]![Search]![qInternal] & "*")) OR ((([Job Form].[Invoice Number]) Like [forms]![Search]![qinvoice] & "*") AND (([Job Form].Customer) Like [forms]![search]![qcustomer] & "*") AND (([Job Form].[Booking Reference]) Like [forms]![search]![qbooking] & "*") AND (([Job Form].[B/L Number]) Like [forms]![search]![qbl] & "*") AND (([Job Form].Line) Like [forms]![search]![qline] & "*") AND (([Job Form].[Payment Made]) Like [forms]![search]![qlinepayment] & "*") AND (([Job Form].IntInvoce3) Like [forms]![Search]![qInternal] & "*"));
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    tommy93 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    Wait, in the printscreen the results are shown in the query results table, not the report that its meant to show in?

    Did it show the results in the report as well or is it just in the normal results table you can get it to work?

    EDIT: Okay, done some playing around with it an your right. Query works fine. Its getting the data to show in the "Search" form, thats where its failing.

  6. #21
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I didn't really look at the report. The query named "Search" appeared to have the fixes applied to it and the SQL behind the report didn't, so I assumed it was that query we were looking at. If the report is the goal, can't you base it on the working query?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #22
    tommy93 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    Yeah i didnt realise your sql suggestion actually fixed the query itself, so thanks for that. Helps a lot.

    I was just attempting to use the report every time, then when you said you had it working and mine still wasnt, i noticed the printscreen showed the query itself not the report. When trying that i realised that the query now works, just the report doesnt.

    Im going to try, information in the report is pulled in from both the query and the jobs table though, so...

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

Similar Threads

  1. Smart Search multiple fields?
    By Deisun in forum Programming
    Replies: 2
    Last Post: 08-15-2011, 12:31 PM
  2. Search across multiple fields
    By Nexus13 in forum Programming
    Replies: 2
    Last Post: 07-08-2011, 02:38 PM
  3. combo box to search multiple fields
    By jo15765 in forum Forms
    Replies: 21
    Last Post: 12-23-2010, 03:28 PM
  4. Replies: 4
    Last Post: 09-22-2010, 01:47 AM
  5. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 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