I greet all the friends of the forum,
I would like the help of more experienced friends about the conversion of the code below:
I have the table "tempSVN" which has a Number field. I would like to add into the same table also the fields "svnID" (Autonumber) and "DateAdded" (short date format). As you may understand this is not the problem for me, but the problem is the following code which is runing for the moment and is taking only the value of the "S". I would like to add also the svnID and the DateAdded into a table "tempSVN"
Public Function CheckVolumeSerialNumber()
Dim S, strCheck0, strCheck1, strCheck2, strCheck3, strCheck4 As String
VName = String$(255, Chr$(0))
FSName = String$(255, Chr$(0))
GetVolumeInformation "C:\", VName, 255, Serial, 0, 0, FSName, 255
VName = Left$(VName, InStr(1, VName, Chr$(0)) - 1)
FSName = Left$(FSName, InStr(1, FSName, Chr$(0)) - 1)
Serial = Replace(Trim(Str$(Serial)), "-", "")
S = Serial
' I would like when i'm running the query to add also the new fields (svnID and DateAdded)
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO tempSVN VALUES ('" & S & "')"
DoCmd.SetWarnings True
End Function
Can anybody help?
Thanks in advanced