473,473 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to make a code using dataenvironment search button?

26 New Member
*using dataenvironment

*code in search button...

*connect in ms access database 2003

*can search all (not only one)"male" person or same surnames... that saved in a database...

kindly post here.... the code.... thanks in advancee...

if you have a site related to this.. kindly post here.. the link... anyway... thanks..

and merry christmas and happy new year to all....
Dec 24 '09 #1
3 6384
debasisdas
8,127 Recognized Expert Expert
kindly post he code that you are working on.
Dec 24 '09 #2
butaiba
1 New Member
@debasisdas
please i have the same problem with my VB the search for a name in my data environment plz help and here is the code:

Private Sub Command2_Click()
y = InputBox(" enter the name plz ")
If y = vbCancel Then
Exit Sub
ElseIf DataEnvironment1.rsCommand1.RecordCount = 0 Then
MsgBox ("no data")
ElseIf y <> "" Then
DataEnvironment1.rsCommand1.MoveFirst
DataEnvironment1.rsCommand1.Find "Name = '" & y & " ' "
On Error GoTo picer
x = "c:\pix\" + Text1.Text + ".jpg"
Image3.Picture = LoadPicture(x)
picer:
Exit Sub
If DataEnvironment1.rsCommand1.EOF Then
MsgBox ("not registed")
DataEnvironment1.rsCommand1.MoveFirst
End If
End If
End Sub
Jan 25 '10 #3
smartchap
236 New Member
Dear butaiba
I have not checked ur code but am correcting its syntax as below:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command2_Click()
  2. y = InputBox(" enter the name plz ")
  3. If y = vbCancel Then
  4. Exit Sub
  5. ElseIf DataEnvironment1.rsCommand1.RecordCount = 0 Then
  6. MsgBox ("no data")
  7. ElseIf y <> "" Then
  8. DataEnvironment1.rsCommand1.MoveFirst
  9. DataEnvironment1.rsCommand1.Find "Name = '" & y & " ' "
  10. On Error GoTo picer
  11. x = "c:\pix\" + Text1.Text + ".jpg"
  12. Image3.Picture = LoadPicture(x)
  13. If DataEnvironment1.rsCommand1.EOF Then
  14. MsgBox ("Not registered")
  15. Exit Sub
  16. Else
  17. DataEnvironment1.rsCommand1.MoveNext
  18. End If
  19. End If
  20. picer:
  21. End Sub
  22.  
Try above & if have any other problem, let me know. Also if u post ur full code, it will be easy to help u with perfect solution.
Jan 28 '10 #4

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

Similar topics

10
by: DataBard007 | last post by:
Hello Access Gurus: I use Win98SE and Access97. I just built a simple Access97 application which holds all contact information for my personal contacts, such as first name, last name, address,...
9
by: Christopher Koh | last post by:
I will make a form which will search the database (just like google interface) that will look/match for the exact name in the records of a given fieldname. Any suggestions on how to make the code?
2
by: Rado | last post by:
Hello. I want know if in VB.NEt is something like DATAENVIRONMENT/ This is in VB6/ Thank You.
2
by: Allcomp | last post by:
Hello, I am trying to learn how to work in Visual Studio .Net 2005 and after searching for a lot, I don't see any answer. Actually, In VB6 I use the dataenvironment. For my application, I...
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
18
by: vishwaskothari | last post by:
i need to develop a dynamic datareport . here by the word dynamic i mean that the contents of the report will vary according to the users input. for eg : i am doing a search operation.and the...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: psyvanz | last post by:
any code that can delete all records in just one click if you have a dataenvironment code it more good.. cause im working in this kind of code. like this: single delete code (not all in the...
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.