473,320 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

access 97: ftp code problems

i have been running into some ftp problems. when i run the ftp, the
log indicates that it has been ftp'd.
here is my ftp log:

USER XX
PASS XXX
CONNECT XXX.dns.com
CD $1$DKB101:[USBCERT_REPORTS]
GET PROD6-06-09-04-299-2 C:\TEMP\PROD.txt 0
CD $1$DKA101:[USBMABS_REPORTS]
GET PROD6-06-09-04-299-2 C:\TEMP\PRODUSBMABS.txt 0

however i look in the c:\temp directory and cannot find the two files.
can anyone tell me what is wrong
with the below code and why it does not ftp to the c:\temp directory?
the Forms![frmFTPData]![txtDatabase] and
Forms![frmFTPData]![txtReportName] needs to have a value. if it
does not have values, then it should exit out of the if statement. the
[txtDatabase] is important because
it tells which report is from which database name.

thanks in advance- jung.

If Forms![frmFTPData]![txtDatabase] <> "" And
Forms![frmFTPData]![txtReportName] <> "" Then
strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT 'CD
$1$DKB101:[USBCERT_REPORTS]' AS Expr1;"
Set qdf = db.CreateQueryDef("", strSQL)
qdf.Execute
'Insert Name of file to retrieve and name and location to save as
strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT 'GET "
& Forms![frmFTPData]![txtReportName].Value & " " &
Forms![frmFTPData]![txtSavedDataLocation].Value & "PROD.txt 0'"
strSQL = strSQL & " AS Expr1;"
Set qdf = db.CreateQueryDef("", strSQL)
qdf.Execute
End If

If Forms![frmFTPData]![txtDatabase] <> "" And
Forms![frmFTPData]![txtReportName] <> "" Then
strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT 'CD
$1$DKA101:[USBMABS_REPORTS]' AS Expr1;"
Set qdf = db.CreateQueryDef("", strSQL)
qdf.Execute
'Insert Name of file to retrieve and name and location to save as
strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT 'GET "
& Forms![frmFTPData]![txtReportName].Value & " " &
Forms![frmFTPData]![txtSavedDataLocation].Value & "PRODUSBMABS.txt 0'"
strSQL = strSQL & " AS Expr1;"
Set qdf = db.CreateQueryDef("", strSQL)
qdf.Execute
End If

'copy script file to ftp directory
DoCmd.TransferText acExportDelim, "myftp", "tblFTPText",
"c:\temp\bmftp.txt", False, ""

'ftp files
Call ShellWait("C:\bm_ref\ftpbm.bat", 1)
'C:\PROGRA~1\WS_FTP~1\FTPSCRPT c:\temp\bmftp.txt
Nov 13 '05 #1
0 1468

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John Phelan | last post by:
I read an article by, by Mike Groh, in Access-VB-SQL Advisor Magazine, Week 37 that concerns me quite a bit on distributing Access Applications commercially. First I need to describe a "commercial...
5
by: Praty77 | last post by:
Hello - we have been using access 97 for a multiple user trading system at a small bank. Typically around 10 users entered a total of hundred trades everyday. Some of the data was shared with a...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
0
by: Steve | last post by:
Greetings, I'm having problems with the use of an Access 2003 Add-In on Windows XP Pro. Administrative-level users have no problems running the Add-In, but those users with restricted rights on...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
55
by: AnandaSim | last post by:
I just had a google through this NG but have not seen mention of Erik Rucker's blog entry and the new Jet: http://blogs.msdn.com/access/archive/2005/10/05/477549.aspx mentioned by Mike...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.