Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

[RESOLVED] number of query values and destination fields are not the same

$
0
0
hey
got a problem
i added to my databse to 2 fields and when i run my programm i get error
number of query values and destination fields are not the same

Code:

ULog = NextID("LogID", "Logs")
    CN.Execute "INSERT INTO Logs (LogID, LogDate, LogDay, LogName, LogIn, LogOut) VALUES (" & _
        ULog & ", '" & UsLogin & "', '" & Format(Now, "dddd, dd  mmmm  yyyy - HH:MM:SS") & "', '')"

and this is the databse fields
Code:

LogID, LogDate, LogDay, LogName, LogIn, LogOut
this is the module
Code:

Public I      As Long, ULog As Long
Public UsLogin As String

tnx in advacend

Viewing all articles
Browse latest Browse all 21846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>