Goran Level: Moderator

 Registered: 16-05-2002 Posts: 1681
|
Re: VB help
Create a table with fields you will be neededing to store data in, like
id - primary key
from - text type
to - text type
subject - text type
body - memo type
Now, to save data into database, you can use use SQL INSERT query
SQL Query
"INSERT INTO TableName (from,to,subject,body) VALUES ('" _
& strSenderMail & "','" _
& strReceiverMail & "','" _
& strMailSubject & "','" _
& strBody & "')" |
Or you can use ADO REcordset object. How are ADO Connection And Recordset object used, you have plenty of examples here (and on the net).
____________________________
If you find the answer helpful, please mark this topic as solved.
|