borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB Home | News Home | Forum Home | Downloads | Register | Search | PM | Profile

Previous Topic (MYSQL 5.0)Next Topic (get IP address of printer) New Topic Post Reply
AndreaVB OnLine : VB General : VB help
Poster Resource
Craigdthom
Level: Trainee

Registered: 07-04-2006
Posts: 2
icon VB help

Hello All,

  This is my first post ... forgive me if I am in the wrong user group.

I am taking on the task of getting input from an email and placing that info into an Access  database.


The user sends an email (in a standard form) ... I am receiving this email and placing the content into a formatted text file.

I would like to parse this text file and place the given values into an Access database.

I am Ok with parsing the text file ... I need help placing the values into the access database


Thanks in Advance,
Craig

07-04-2006 at 12:57 AM
View Profile Send Email to User Show All Posts | Add Comment
Goran
Level: Moderator


Registered: 16-05-2002
Posts: 1681
icon 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.

07-04-2006 at 11:24 AM
View Profile Send Email to User Show All Posts | Add Comment
Craigdthom
Level: Trainee

Registered: 07-04-2006
Posts: 2
icon Re: VB help

Thanks for the info!!!

I am off to learn more about record sets ...
-Craig

08-04-2006 at 07:49 PM
View Profile Send Email to User Show All Posts | Add Comment
AndreaVB OnLine : VB General : VB help
Previous Topic (MYSQL 5.0)Next Topic (get IP address of printer)New Topic Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder