|
-
Jan 16th, 2014, 12:27 PM
#1
Access INSERT 1000's of rows from Email - best method?
Hi!
I have a daily email... it has anywhere from 500 to 3000+ lines that need to be scanned into a table (they are huge file names)
currently doing in a simple loop.. I split the email body by vbCrLf then loop the lines,
if the line has certain text instr() then i insert
DoCmd.RunSQL("INSERT INTO blah blah")
so essentially it has to do a ton of inserts..
is there a better way of doing the insert?
thanks!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jan 17th, 2014, 01:31 PM
#2
Re: Access INSERT 1000's of rows from Email - best method?
Sup Static! Long time no see. Hope everything is going well.
So you have the email contents auto importing to Access or ? Whats the logic?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 23rd, 2014, 09:19 AM
#3
Re: Access INSERT 1000's of rows from Email - best method?
HEY!!!! Yeah it has been a while Things are good here.. how about with you??
Yes.. Access hooks to one email inbox, grabs each email, splits by vbcrlf, then loops through and does an insert (DoCmd.RunSQL("INSERT INTO blah blah") for each line... it works fine but I was wondering if there might be a better way to do this?
on a side note.. ever tried to import an XLSB file? it errors.... i have to convert to XLSX..
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|