Click here to Skip to main content
16,005,099 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionInsert error??? Pin
hounetdev29-Mar-04 9:13
hounetdev29-Mar-04 9:13 
AnswerRe: Insert error??? Pin
KamWaf29-Mar-04 14:36
KamWaf29-Mar-04 14:36 
AnswerRe: Insert error??? Pin
Member 36080530-Mar-04 11:50
Member 36080530-Mar-04 11:50 
GeneralBinding objects - Error Pin
ibok2329-Mar-04 8:55
ibok2329-Mar-04 8:55 
GeneralRe: Binding objects - Error Pin
ibok2329-Mar-04 14:08
ibok2329-Mar-04 14:08 
Generalselecting a data in flexgrid Pin
GaryKoh29-Mar-04 5:43
GaryKoh29-Mar-04 5:43 
GeneralRe: selecting a data in flexgrid Pin
superwinsock29-Mar-04 23:49
superwinsock29-Mar-04 23:49 
GeneralRe: selecting a data in flexgrid Pin
GaryKoh30-Mar-04 0:44
GaryKoh30-Mar-04 0:44 
hii
will this also work if i have this module??
Public Function AutoComplete(sTextbox As TextBox, sFlexGrid As MSFlexGrid, sDB As Database, sTable As String, sField As String) As Boolean
On Error Resume Next
Dim sCounter As Integer
Dim OldLen As Integer
Dim sTemp As Recordset

AutoComplete = False
If Not sTextbox.Text = "" Then
OldLen = Len(sTextbox.Text)
Set sTemp = sDB.OpenRecordset("SELECT * FROM " & sTable & " WHERE " & sField & " LIKE '" & sTextbox.Text & "*'", dbOpenDynaset)

If Not sTemp.RecordCount = 0 Then
If sTemp.EOF = True And sTemp.BOF = True Then
MsgBox "Not Matching Records", vbInformation, "Error"
Else
sTemp.MoveFirst
sFlexGrid.Clear
sFlexGrid.FormatString = "Book Name |ISBN |Author |Book In-Store"
Do While Not sTemp.EOF
sFlexGrid.AddItem sTemp.Fields(0).Value
sFlexGrid.TextMatrix(sFlexGrid.Rows - 1, 1) = sTemp.Fields(1).Value
sFlexGrid.TextMatrix(sFlexGrid.Rows - 1, 2) = sTemp.Fields(2).Value
sFlexGrid.TextMatrix(sFlexGrid.Rows - 1, 3) = sTemp.Fields(3).Value
sTemp.MoveNext
Loop
End If
If sTextbox.SelText = "" Then
sTextbox.SelStart = OldLen
Else
sTextbox.SelStart = InStr(sTextbox.Text, sTextbox.SelText)
End If
sTextbox.SelLength = Len(sTextbox.Text)
AutoComplete = True
Else
sFlexGrid.Clear
End If
End If
End Sub

this must be available in it.
so this means i put the code in the
Flexgrid or the form_load?
im not really sure
please tell me
thank you

Gary
GeneralRe: selecting a data in flexgrid Pin
superwinsock30-Mar-04 1:15
superwinsock30-Mar-04 1:15 
GeneralRe: selecting a data in flexgrid Pin
GaryKoh30-Mar-04 2:11
GaryKoh30-Mar-04 2:11 
GeneralRe: selecting a data in flexgrid Pin
superwinsock30-Mar-04 3:12
superwinsock30-Mar-04 3:12 
GeneralRe: selecting a data in flexgrid Pin
GaryKoh31-Mar-04 16:17
GaryKoh31-Mar-04 16:17 
Questiondoable in .net? Pin
KamWaf29-Mar-04 5:31
KamWaf29-Mar-04 5:31 
AnswerRe: doable in .net? Pin
Zlosk29-Mar-04 6:03
Zlosk29-Mar-04 6:03 
GeneralRe: doable in .net? Pin
KamWaf29-Mar-04 7:32
KamWaf29-Mar-04 7:32 
GeneralVB6 date vs SQL Server date Pin
gpa200029-Mar-04 2:13
gpa200029-Mar-04 2:13 
GeneralRe: VB6 date vs SQL Server date Pin
Anonymous29-Mar-04 7:47
Anonymous29-Mar-04 7:47 
GeneralRe: VB6 date vs SQL Server date Pin
Guerven30-Mar-04 1:44
Guerven30-Mar-04 1:44 
GeneralRe: VB6 date vs SQL Server date Pin
gpa200030-Mar-04 12:33
gpa200030-Mar-04 12:33 
GeneralRe: VB6 date vs SQL Server date Pin
jonathan151-Apr-04 3:28
jonathan151-Apr-04 3:28 
GeneralFTP address decode from packet Pin
Anoop Kumar28-Mar-04 23:59
Anoop Kumar28-Mar-04 23:59 
GeneralReverse engineering Pin
Emma S28-Mar-04 22:18
Emma S28-Mar-04 22:18 
GeneralRe: Reverse engineering Pin
Colin Angus Mackay29-Mar-04 0:06
Colin Angus Mackay29-Mar-04 0:06 
GeneralRe: Reverse engineering Pin
Dave Kreskowiak29-Mar-04 1:52
mveDave Kreskowiak29-Mar-04 1:52 
GeneralCustom Control UI Pin
Guerven28-Mar-04 22:14
Guerven28-Mar-04 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.