giant_killa
08-29-2003, 04:03 AM
hey all...
I have the following code that is designed to search through database and display corresponding information on the form.
If (txtCurrentSearch.Text > 1) And (txtCurrentSearch.Text < 99999) Then
For x = 1 To Countdata
If txtCurrentSearch.Text = CurrentSubNum(x) Then
lblCurrentNewSubNum.Caption = "Subscription Number - " & CurrentSubNum(x)
lblCurrentName.Caption = "Name - " & CurrentName(x)
lblCurrentAddress.Caption = "Address - " & CurrentAddress(x)
lblCurrentSex.Caption = "Sex - " & CurrentSex(x)
lblCurrentSubDate.Caption = "Last Subscription Date - " & CurrentSubDate(x)
cmbCurrentSubType.Text = CurrentSubType(x)
cmbCurrentSubAge.Text = CurrentSubAge(x)
End If
Next x
End If
I have only 7 subscription numbers in the database, which range from 10001 - 10007. i want a message box to appear if the number entered does not match the number in the database.
Does anyone know how i can achieve this?
thanks for ya help...
DK
I have the following code that is designed to search through database and display corresponding information on the form.
If (txtCurrentSearch.Text > 1) And (txtCurrentSearch.Text < 99999) Then
For x = 1 To Countdata
If txtCurrentSearch.Text = CurrentSubNum(x) Then
lblCurrentNewSubNum.Caption = "Subscription Number - " & CurrentSubNum(x)
lblCurrentName.Caption = "Name - " & CurrentName(x)
lblCurrentAddress.Caption = "Address - " & CurrentAddress(x)
lblCurrentSex.Caption = "Sex - " & CurrentSex(x)
lblCurrentSubDate.Caption = "Last Subscription Date - " & CurrentSubDate(x)
cmbCurrentSubType.Text = CurrentSubType(x)
cmbCurrentSubAge.Text = CurrentSubAge(x)
End If
Next x
End If
I have only 7 subscription numbers in the database, which range from 10001 - 10007. i want a message box to appear if the number entered does not match the number in the database.
Does anyone know how i can achieve this?
thanks for ya help...
DK