Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 7th, 2005, 11:12 PM
Utarian Utarian is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 11 Utarian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 55 sec
Reputation Power: 0
Question how to search ?

hello, i am new to access.
I have a form here, all the textboxes are bounded to a table to store the information. What should i do if i want to search for the rest of the details of a record by key in a key like ID? It is like i key in the ID in the ID textbox then the rest of the information will be displayed when i press the search button. The display would be exactly same like the form where the user key in the information during ADDing process.

anyone can help me ?

Reply With Quote
  #2  
Old February 8th, 2005, 01:28 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Why not just use the same form where you add records and use that same form to display records? I see no need in a second form. If you use the same form then you can use the bookmark properties to quickly locate the record you want.

Dim intSearch As Integer
intSearch = [txtID].Value
Me.RecordsetClone.FindFirst "[ID] = " & intSearch
Me.Bookmark = Me.RecordsetClone.Bookmark

The above assumes your ID is a number not a text.

lwells

Reply With Quote
  #3  
Old February 14th, 2005, 02:01 AM
Utarian Utarian is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 11 Utarian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 55 sec
Reputation Power: 0
i will b using the add form to display the search results.
Can you please explain more about the bookmark property? I do not understand how the property works.

Thanks

Reply With Quote
  #4  
Old February 15th, 2005, 10:02 PM
Utarian Utarian is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 11 Utarian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 55 sec
Reputation Power: 0
i tried out the codes above, it prompted out a message like this :

Run Time error ' 7951':
You entered an expression that has an invalid reference to the RecordsetClone Property.

What does this mean?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > how to search ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT