|
-
May 25th, 2006, 10:59 PM
#1
Upload File From Access
I need to provide a function in an Access 2000 db that will take a textfile (queryresults in a specialized format) and upload/transfer it to a remote server over the internet. Never used windsock so not sure if its the right tool for the function but I think redirecting a command window's FTP session would work.
So which method sounds best and easiest for the function?
Thanks
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 
-
May 25th, 2006, 11:36 PM
#2
Hyperactive Member
-
May 26th, 2006, 12:59 AM
#3
Re: Upload File From Access
On the remote server there will be a folder where I need to upload these files (small text files 250bytes - 1k) periodically. The receiveing folder will have a filesystem watcher on it scheduled interval of 30 minutes where it will process any files in the folder and remove them after processing.
HTTP would be like a POST I assume but there will be authentication needed before the upload will be accepted.
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 
-
May 26th, 2006, 01:16 AM
#4
Hyperactive Member
Re: Upload File From Access
 Originally Posted by RobDog888
On the remote server there will be a folder where I need to upload these files (small text files 250bytes - 1k) periodically. The receiveing folder will have a filesystem watcher on it scheduled interval of 30 minutes where it will process any files in the folder and remove them after processing.
HTTP would be like a POST I assume but there will be authentication needed before the upload will be accepted.
Where would the files come from? Is it from the client machine or the remote server will generate the text files?
And where would the files go to? Is it from the client machine or the remote server?
-
May 26th, 2006, 01:50 AM
#5
Re: Upload File From Access
They will be generated on the client machine from within an Access db. The textfiles will go from client machine to the remote server.
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 
-
May 26th, 2006, 01:53 AM
#6
Re: Upload File From Access
I was initially looking at using code like this but wanted to check out windsock first before integrating it all.
FTP API code example
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 
-
May 26th, 2006, 01:57 AM
#7
Hyperactive Member
Re: Upload File From Access
 Originally Posted by RobDog888
They will be generated on the client machine from within an Access db. The textfiles will go from client machine to the remote server.
So you are saying that the client machine will generate textfiles from their Access DBs and upload their textfiles to the remote server?
Is this process unmanned or automated or they will have to upload their own textfiles?
-
May 26th, 2006, 02:02 AM
#8
Re: Upload File From Access
Correct, the process is to generate an Access report and when printed will generate the textfile(s) and automatically transmit the text file(s). Upon sucessful transmission, delete the textfile(s).
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 
-
May 26th, 2006, 02:13 AM
#9
Hyperactive Member
Re: Upload File From Access
 Originally Posted by RobDog888
Correct, the process is to generate an Access report and when printed will generate the textfile(s) and automatically transmit the text file(s). Upon sucessful transmission, delete the textfile(s).
Well you have to create 2 programs.
1 for the client that will process the Access Database to textfile.
1 for the Server that will look for active connection from the client.
Have you created the two programs so far?
-
May 26th, 2006, 02:22 AM
#10
Re: Upload File From Access
The server part is already a completed provided service.
I just need to concentrate on the actual transmission of the file. I have everything else in place.
So upon the print event I need to transmit the file.
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 
-
May 26th, 2006, 02:33 AM
#11
Hyperactive Member
Re: Upload File From Access
In Winsock, you must have direct access to the client computer.
If you already have then do this on the client side:
VB Code:
Winsock.RemoteHost = 'Server Name
Winsock.RemotePort = 'Port Number
Winsock.Connect
-
May 26th, 2006, 02:43 AM
#12
Re: Upload File From Access
When you say direct access will it make a difference if the client computer is a Windows NT 4 Terminal Server? It could be considered not direct.
But what I really want to know is which method is best and most reliable - FTP APIs or Windsock?
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 
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
|