Results 1 to 4 of 4
  1. #1
    bikerguy06 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    3

    Need Help with a very simple query

    First off, I'm a pretty big noob at this access, especially vba. After spending the last 2 days on google, i'm hoping someone on here can help.

    I recently got the assignment at work to create a database, which will be used by 10-15 employees in different countrys to input and update information about certain projects.
    So far I have:
    A table with 8 columns that hold the needed information
    A form with 8 text fields to input data into the table
    Another form with 8 text fieldsto search data in the table


    A query to filter the information requested on the search form
    A report

    My problem: When I enter info in the search form and hit the search button, it opens up a select query, however with no results.
    For one of the criteria in the query, I have forms!searchform!account name I got the info off of a tutorial video, but somehow this isn't working for me.

    Also, this isn't necessary, but can I get the search results to pop up in a report instead of a table?

  2. #2
    bikerguy06 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    3
    Here is my query

    SELECT [current table].[Account Name], [current table].[Account Manager], [current table].[Problem Description], [current table].[Kunde/Werk], [current table].[product group], [current table].[Product Manager], [current table].[Date Received], [current table].[Item Number]
    FROM [current table]
    WHERE ((([current table].[Account Name])=[forms]![searchform]![accountname] & "*") AND (([current table].[Account Manager])=[forms]![searchform]![accountname] & "*") AND (([current table].[Problem Description])=[forms]![searchform]![problemdescription] & "*") AND (([current table].[Kunde/Werk])=[forms]![searchform]![werk] & "*") AND (([current table].[product group])=[forms]![searchform]![productgroup] & "*") AND (([current table].[Product Manager])=[forms]![searchform]![productmanager] & "*") AND (([current table].[Date Received])=[forms]![searchform]![datereceived] & "*") AND (([current table].[Item Number])=[forms]![searchform]![itemnumber] & "*"))
    ORDER BY [current table].[Account Name];

    I will try to attach the entire database as soon as i figure out how!

  3. #3
    bikerguy06 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    3
    Also, when i simply try to open the query, a prompt box comes up and says "Enter Parameter Value", beneath that it will say something like "Forms!searchform!accountname"

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Your query wants that form to be open. Have you searched around on the internet or looked at the templates that come with Access are that Microsoft has OnLine for something that is close to what you want. What you are describing is a rather full plate.

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

Similar Threads

  1. Export a simple query result to an excel file
    By wop_nuno in forum Import/Export Data
    Replies: 1
    Last Post: 05-21-2009, 04:18 AM
  2. Replies: 2
    Last Post: 03-31-2009, 11:15 AM
  3. Help with a simple query
    By JohnnyO in forum Queries
    Replies: 1
    Last Post: 02-11-2009, 09:43 PM
  4. Please help w/ simple languages db
    By TalentNation.net in forum Database Design
    Replies: 0
    Last Post: 01-23-2009, 09:11 AM
  5. Should be simple Query Question
    By brj1 in forum Queries
    Replies: 2
    Last Post: 03-04-2006, 01:11 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