Not quite that easy.... (The strings would need to be quoted..)
string strSQL = "INSERT INTO photos (photoID, location, phDate,
category, caption) VALUES ('" + newPhotoID + "', '" + newLocation
+ "', #" + newDate.ToString() + "#, '" + newCategory + "', '" +
newCaption + "');" ;
--
Truth,
James Curran
[erstwhile VC++ MVP]
Home:
www.noveltheory.com Work:
www.njtheater.com
Blog:
www.honestillusion.com Day Job:
www.partsearch.com
"Peter Gloor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try something like:
>
> string strSQL = "INSERT INTO photos (photoID, location, phDate,
> category, caption) VALUES (" + newPhotoID + ", " + newLocation
> + ", " + newDate.ToString() + ", " + newCategory + ", " +
> newCaption + ");" ;
>
>
> Peter
>
>