Click here to Skip to main content
15,905,238 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Easy way of set scroll to bottom in richtext? Pin
Dave Kreskowiak16-Dec-04 4:51
mveDave Kreskowiak16-Dec-04 4:51 
GeneralRe: Easy way of set scroll to bottom in richtext? Pin
carlos_rocha16-Dec-04 23:10
carlos_rocha16-Dec-04 23:10 
GeneralRe: Easy way of set scroll to bottom in richtext? Pin
carlos_rocha16-Dec-04 23:51
carlos_rocha16-Dec-04 23:51 
Generalsearching a Date field in Access Pin
jlawren7716-Dec-04 4:10
jlawren7716-Dec-04 4:10 
GeneralRe: searching a Date field in Access Pin
Dave Kreskowiak16-Dec-04 4:45
mveDave Kreskowiak16-Dec-04 4:45 
GeneralRe: searching a Date field in Access Pin
jlawren7716-Dec-04 7:32
jlawren7716-Dec-04 7:32 
GeneralRe: searching a Date field in Access Pin
Dave Kreskowiak16-Dec-04 8:20
mveDave Kreskowiak16-Dec-04 8:20 
GeneralRe: searching a Date field in Access Pin
16-Dec-04 8:36
suss16-Dec-04 8:36 
I am writing this Vb
<br />
strSQLUpdate = "SELECT PassID From Users WHERE (PassID)= " & SearchSQlPassID & " AND (Today_Date)=Date()"  <--- works Sweet :)<br />
    <br />
'open Connection<br />
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\RMSC LOGIN\MYDataBase.mdb;Persist Security Info=False"<br />
Set Cnxn = New ADODB.Connection<br />
Cnxn.Open strCnxn<br />
Set cmdChange = New ADODB.Command  ' Create command object<br />
Set cmdChange.ActiveConnection = Cnxn<br />
cmdChange.CommandText = strSQLUpdate<br />
Set rsUser = cmdChange.Execute   ' execute the SQL command<br />

Now i want to test the value of the results
<br />
If rsUser.Fields("PassID").Value = 0 Then <-- error here  Error 3021  either BOF or EOF is true or the record has been deleted<br />

if the passid doesn't meet the criteria above i want it to display a message
<br />
MsgBox ("You first need to log In before you log out!!")<br />
     Cnxn.Close  ' Close everything<br />
     Set Cnxn = Nothing<br />
     Unload Me<br />


how can I test the result without throwing this error?
GeneralRe: searching a Date field in Access Pin
16-Dec-04 8:54
suss16-Dec-04 8:54 
GeneralVery Urgent &quot;Please help&quot; Pin
syed saba16-Dec-04 2:09
syed saba16-Dec-04 2:09 
GeneralRe: Very Urgent "Please help" Pin
Tom John16-Dec-04 2:14
Tom John16-Dec-04 2:14 
GeneralRe: Very Urgent "Please help" Pin
syed saba16-Dec-04 2:21
syed saba16-Dec-04 2:21 
GeneralRe: Very Urgent &quot;Please help&quot; Pin
Tom John16-Dec-04 2:33
Tom John16-Dec-04 2:33 
GeneralRe: Very Urgent &quot;Please help&quot; Pin
syed saba16-Dec-04 2:46
syed saba16-Dec-04 2:46 
GeneralRe: Very Urgent &quot;Please help&quot; Pin
The Man from U.N.C.L.E.16-Dec-04 6:53
The Man from U.N.C.L.E.16-Dec-04 6:53 
GeneralCreating an new form with race results Pin
harrysk16-Dec-04 0:26
harrysk16-Dec-04 0:26 
GeneralRe: Creating an new form with race results Pin
Tom John16-Dec-04 1:54
Tom John16-Dec-04 1:54 
GeneralRe: Creating an new form with race results Pin
Dave Kreskowiak16-Dec-04 3:37
mveDave Kreskowiak16-Dec-04 3:37 
GeneralRe: Creating an new form with race results Pin
The Man from U.N.C.L.E.16-Dec-04 6:57
The Man from U.N.C.L.E.16-Dec-04 6:57 
GeneralRe: Creating an new form with race results Pin
m_hussein4-Jan-05 21:33
m_hussein4-Jan-05 21:33 
Generalminor problems with application Pin
harrysk16-Dec-04 0:22
harrysk16-Dec-04 0:22 
GeneralRe: minor problems with application Pin
Tom John16-Dec-04 1:56
Tom John16-Dec-04 1:56 
QuestionHow to list installed device drivers using VB6? Pin
pagemastah16-Dec-04 0:21
pagemastah16-Dec-04 0:21 
GeneralParsing arrays into functions as input. Pin
Alsvha15-Dec-04 22:47
Alsvha15-Dec-04 22:47 
GeneralRe: Parsing arrays into functions as input. Pin
Dave Kreskowiak16-Dec-04 3:35
mveDave Kreskowiak16-Dec-04 3:35 

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.