Results 1 to 2 of 2
  1. #1
    martyloo is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    1

    Search Problem

    Hi all very new to this so not sure how to code this very well.

    I have a database Form "Projects" which has the following fields:
    ID
    Address
    Total Units
    Date
    Owner
    Agent/Source
    Terms/Deferment
    Planning Permission
    Situation
    User Initials
    Comments

    I have two buttons:
    Find_Record
    Add_Record

    I have the following textboxes:
    Address
    Total Units
    Date
    Owner
    Agent/Source
    Terms/Deferment
    Comments

    I have the following dropdown boxes:
    User Initials
    Planning Permission
    Situation

    The dropdown options are:
    User Initials - "CJ" "MN" "AR" "JE" "DS"
    Planning Permission - "Y" "N"
    Situation - "Buying" "Chasing" "Sold" "Offer Submitted" "Offer Accepted" "Option" "Contracted"

    I need to code this so when I type in these various textboxes and press "Find_Record" it will search for the relevant criteria of information given in the textboxes.

    I also need it so when I press "Add_Record" it will add the information provided into a new project in my "Projects" form.

    I am asking for quite a lot, I know but if anyone can help out there it would be AMAZING! I have searched forum after forum after youtube video and I cant get this to work. (pasted code would be amazing!)

    PLEASE SOMEONE HELP!



    Thanks in advance

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Check this tutorial about filtering records on form. Note that controls used to input search criteria should be UNBOUND. http://www.datapigtechnologies.com/f...tomfilter.html

    If form is bound to table and controls bound to fields, no need for a 'Add Record' button. Record is committed to table when form closes or move to another record. Access Help has guidelines on building bound forms.
    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.

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

Similar Threads

  1. Problem in Search Form
    By siddel77 in forum Forms
    Replies: 1
    Last Post: 09-05-2011, 06:29 PM
  2. Replies: 4
    Last Post: 03-17-2011, 06:17 AM
  3. Search problem with form
    By JackT in forum Forms
    Replies: 2
    Last Post: 09-01-2010, 12:03 PM
  4. Replies: 2
    Last Post: 08-31-2010, 08:57 PM
  5. Replies: 2
    Last Post: 06-14-2010, 03:25 PM

Tags for this Thread

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