473,396 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

tell me find record from the button

hussaini
Private Sub Command1_Click()
DataEnvironment1.rsCommand1.MoveFirst
End Sub

Private Sub Command2_Click()
DataEnvironment1.rsCommand1.MoveNext
End Sub

Private Sub Command3_Click()
DataEnvironment1.rsCommand1.MovePrevious
End Sub

Private Sub Command4_Click()
DataEnvironment1.rsCommand1.MoveLast

End Sub

Private Sub Command5_Click()
DataEnvironment1.rsCommand1.Update
End Sub

Private Sub Command6_Click()
Unload Me

End Sub

Private Sub Command7_Click()
Form2.Show

End Sub

Private Sub Command8_Click()
DataEnvironment1.rsCommand1.AddNew
End Sub

Private Sub Command9_Click()


End Sub

hello my code this i am finding records from database
just like i want to find any record from a form Name like jhon and i have created two objects one thing Command button and other is textbox where i search the name in text box i put the name and click the command button then results will be apear so please tell me the code of it
Dec 24 '06 #1
1 2090
Killer42
8,435 Expert 8TB
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.   DataEnvironment1.rsCommand1.MoveFirst
  3. End Sub
  4.  
  5. Private Sub Command2_Click()
  6.   DataEnvironment1.rsCommand1.MoveNext
  7. End Sub
  8.  
  9. Private Sub Command3_Click()
  10.   DataEnvironment1.rsCommand1.MovePrevious
  11. End Sub
  12.  
  13. Private Sub Command4_Click()
  14.   DataEnvironment1.rsCommand1.MoveLast
  15. End Sub
  16.  
  17. Private Sub Command5_Click()
  18.   DataEnvironment1.rsCommand1.Update
  19. End Sub
  20.  
  21. Private Sub Command6_Click()
  22.   Unload Me
  23. End Sub
  24.  
  25. Private Sub Command7_Click()
  26.   Form2.Show
  27. End Sub
  28.  
  29. Private Sub Command8_Click()
  30.   DataEnvironment1.rsCommand1.AddNew
  31. End Sub
  32.  
  33. Private Sub Command9_Click()
  34.  
  35. End Sub
  36.  
hello my code this i am finding records from database
just like i want to find any record from a form Name like jhon and i have created two objects one thing Command button and other is textbox where i search the name in text box i put the name and click the command button then results will be apear so please tell me the code of it
If we assume that Command9 is the search button, it might be somethin glike this...
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command9_Click()
  2.   DataEnvironment1.rsCommand1.FindFirst "Name = '" & Text1.Text & "'"
  3. End Sub
  4.  
Dec 26 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: JIMMIE WHITAKER | last post by:
Can someone help on this: I am just learning, and I'm connecting to the the northwindcs.mdf tables / open file is northwindcs.adp. This is the sample installed using msde, which is supposed to be...
3
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
1
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for...
3
by: Sarah Smith via AccessMonster.com | last post by:
I am creating a database of documents that need to be worked on, are int eh proress of being worked on, and have been completed. Sometimes the same document (an updated version) comes back for more...
4
by: Rico | last post by:
Hi All, Just wondering, in vb code, how to if the last record on a cascading form is the current record? Thanks!
7
by: gjoneshtfc | last post by:
Hello I want to search my database for a vehicle registration number but before i can search using the Find Record button i created i have to click in the registration field so that it is that...
0
by: Sam | last post by:
I am fairly new to ASP. Net 2.0, background MS Access 2000/2003 and working knowledge of SQL 2000. Scenario: Page1: Blank Page loads with 2 Text Boxes (TxtLast, TxtFirst), a Command...
1
by: farhan31 | last post by:
Hello all I have Two tables.Table 1 and table 2.Table 1 has one to many relation with Table 2.I have one main form Form1 based on table 1.On form 1 i have a sub form based on table 2.I have put a...
1
Run2Eat
by: Run2Eat | last post by:
i feel like this is a doofus question... but i've created an access form and added a find record button, but when i use the form, the find record button searches the form itself, not the table. all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.