sstreet
Access Demon
- Local time
- Today, 23:03
- Joined
- Dec 5, 2002
- Messages
- 50
I am trying to run an insert query using the following code:
The program loops through the registry extracting software information and runs the query after each loop. The query works but only inserts data where all the fields contain values.
Any ideas how I can get around this?
Thanks in advance.
Code:
DoCmd.RunSQL "INSERT INTO Software ( PCID, Name, Version ) VALUES ( '" & Me.txtPCID & "', '" & CStr(lngSoftware) & "', '" & CStr(lngVersion) & "');"
The program loops through the registry extracting software information and runs the query after each loop. The query works but only inserts data where all the fields contain values.
Any ideas how I can get around this?
Thanks in advance.