Results 1 to 11 of 11
  1. #1
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29

    Search button on forum

    My first attempt on this board for help was trying to create a method to search using Access 10. After no response I noticed on the bottom of the topic this link which was very helpful:
    <http://datapigtechnologies.com/flash...tomfilter.html>

    This was my first attempt at code with Access 2010 or for that matter any program. It was easy to follow and the result was pretty decent considering I have zip experience. I did come up with a problem that's beyond me, no surprise there.

    I have a button to clearer the filter and when I click on it I get this error message: "Enter a parameter value" Forms!form!myselector

    Here is a code for the button (On Click):
    Option Compare Database
    Private Sub Command89_Click()
    Me.myselector.Value = ""
    Me.Requery
    End Sub
    ______________________________
    Private Sub myselector_AfterUpdate()
    Me.Requery
    End Sub

    The following is the Query:
    SELECT PERMIT.SEQNO, PERMIT.SEAL, PERMIT.PER_DATE, PERMIT.IPDATE, PERMIT.SC, PERMIT.TYPECITY, PERMIT.BLD, PERMIT.BLDNAME
    FROM PERMIT
    WHERE (((PERMIT.SEAL) Like [forms]![form1].[myselector] & "*"));



    Hope to find some help on this forum.

    I also would like to know how to create a button that will let me toggle between column view and forum view. My company was vandalized by former employee. I need this program to research the thousands of permits to determine whether the piles of documents are in the system or not. Since she also embezzled thousands of dollars I have to take it upon my self to accomplish the necessary programming. 18 years of trust down the drain.
    Bob

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    The code and query look good. The Requery in AfterUpdate event works?

    If you want to provide db for analysis, follow instructions at bottom of my post.

    Buttons don't show on form in Datasheet view. Can use Continuous view and arrange data controls to look like datasheet. Then toggle between Continuous and Single views. Or maybe the Split form will suit your requirements.
    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.

  3. #3
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29
    I thought I deleted the records not needed but they seem to still be in the file,size, and can't be seen. This Access is a result of dbv IV. It was converted File\Open\dBase IV (*.dbf)
    It seems to still have a link to the dbf.

    Bob
    Access 7

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    So you are not providing the db for analysis?
    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.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    What is in this combo [forms]![form1].[myselector] & "*"?
    What is the Row source?

    Should you be checking against Permit.SeqNo??

    I suggest you post a copy for June7.

  6. #6
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29
    Yes but it's 350000 records. Let me take it back to ddBase IV and size it down. About 1/2 hour.
    Bob

  7. #7
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29

    I hope I did it right

    Here is file. The 2 image files are not part of this. I just can't delete them from the attachment.
    Bob
    Attached Files Attached Files

  8. #8
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29
    "Seal" is what I'm searching on.
    Bob

  9. #9
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29
    Some how my permit file got named, novice, to Permit1. I changed it back to Permit. One less issue.
    Bob
    Last edited by amerifax; 10-17-2012 at 03:51 PM.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Your form name is [Permit Check], not 'form1'.

    Adjust the criteria in the form's RecordSource query appropriately.
    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.

  11. #11
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29
    >>June7<<
    Your tutorial on Search Box was more than helpful. This is my first form created. I'm porting over from dBase IV. I'm using the form for a very critical project and you made this possible.
    Thanks again

    Bob

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

Similar Threads

  1. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  2. Converting dBase forum to Access forum
    By amerifax in forum Forms
    Replies: 5
    Last Post: 07-03-2012, 01:12 AM
  3. Replies: 12
    Last Post: 03-22-2012, 02:48 AM
  4. Search Button
    By bomber72 in forum Forms
    Replies: 6
    Last Post: 08-03-2011, 11:44 AM
  5. How to filter/search using a forum?
    By MediaCo in forum Access
    Replies: 3
    Last Post: 07-04-2011, 03:30 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