Results 1 to 9 of 9
  1. #1
    abdullahsikandar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    12

    Database Access Search

    Hello everyone,

    I am new on this forum and new to the access as well, Please help me out on database Search form.

    I need to make a search form where i can search from the database access and generate the report in Excel.

    for example in a form there are 4 fields, I can search by field by field and press submit button then if there is no record it will pop up that no record found if there is a record so it will generate an excel sheet with formatting.

    Thanks

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    So then you want to Export that data into Excel correct? If so, then use the Export feature.

  3. #3
    abdullahsikandar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    12
    Quote Originally Posted by burrina View Post
    So then you want to Export that data into Excel correct? If so, then use the Export feature.

    Well yes, But i need a path a button to save it and export it automatically. Anyhow that can be done by using export method too. You are right.

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Example: TheFile = "c:\temp\MyReport-" & TheDate & ".xls"

  5. #5
    abdullahsikandar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    12
    Yeah ... Thats what i want but how do i search? i mean what will be the algorithm for searching in database? on user form.

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I am not following you.You say you already have a search combo that works, Yes? If not, then create one using the wizard.

  7. #7
    abdullahsikandar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    12
    Sorry Sir,

    I need to make the whole form for this searching criteria as i wrote an example. I need a VBA code behind that for searching.

  8. #8
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You want me to design a form for you? Do you have a Database created already? Can you upload a demo copy?

  9. #9
    abdullahsikandar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    12
    I don`t have that copy right now .. I am making it can you give me an example for the code.

    For instance there are 2 columns in database

    Name Age

    ab 22
    cc 34
    dd 44
    ssa 12


    User form for searching:

    Name:ab
    Age: 22

    Then the result would be created in Excel sheet with that result.

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

Similar Threads

  1. Search form database
    By Jan22 in forum Access
    Replies: 4
    Last Post: 11-20-2013, 11:16 AM
  2. Access Web Database - Search Query Combatibiity
    By AndreasPanayiotou in forum Queries
    Replies: 0
    Last Post: 09-18-2012, 10:37 AM
  3. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  4. How to search the Database?
    By simba in forum Programming
    Replies: 2
    Last Post: 10-21-2010, 05:48 AM
  5. Database Search filter
    By dada in forum Programming
    Replies: 7
    Last Post: 08-19-2010, 12:42 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