Computing.Net > Forums > Programming > cmdFind_Click ()

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

cmdFind_Click ()

Reply to Message Icon

Name: lucky1
Date: December 1, 2004 at 15:47:25 Pacific
OS: win98se
CPU/Ram: 1.4 AMD / 512
Comment:

Hi All,

Help for cmdFind_Click () & cmdPreview_Click ().

I am trying to self teach, and my teacher is not too bright !!!

I have a .exe program with a small database (written with VB6)
with only 5 Fields:

Record (counter)
Stock
Description
SoldTo
ItemPhoto

I need help with cmdFind_Click() - Need to find any record by String as
well as Integer, as you can see I can only find the Integer

Private Sub cmdFind_Click()
Dim Record As Integer
Record = InputBox("Enter the Ref of the required contact: ", "Find Contact")
Data2.Recordset.Index = "Record"
Data2.Recordset.Seek "=", Record
End Sub.

Is there a way the ItemPhoto can be viewed within the form ???

Private Sub oleItemPhoto_DblClick (Index As Integer)
oleItemPhoto(Index).InsertObjDlg
End Sub

How can I sort the report on Stock ??

Private Sub cmdPreview_Click()
DataReport1.Show
End Sub.

Lucky1



Sponsored Link
Ads by Google

Response Number 1
Name: Eridanus
Date: December 10, 2004 at 22:28:56 Pacific
Reply:

use SQL for searching for records....
about the photos: save file's address(folder) in use dbase and retrieve to make the photo appear
use IMAGE for your photos... the command is LOADPICTURE


0
Reply to Message Icon

VB and Seqeuntial file Music freeware



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: cmdFind_Click ()

VB6 and database access question www.computing.net/answers/programming/vb6-and-database-access-question/925.html

Access search in VB www.computing.net/answers/programming/access-search-in-vb/1684.html

add del view print in visual basic 6.0 www.computing.net/answers/programming/add-del-view-print-in-visual-basic-60/1619.html