473,666 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access97 runtime error 3075 missing operator

I have an ftp program that i inherited and i tried to modify it to ftp
over my file however, i receive an error message :

run-time error '3075
syntax error (missing operator) in query expression " Get
PROD6-12-22-03-299-2
c:temp\'PROD6FT CERT.txt 0 As Expr1;'.

i'm clueless why i have a missing operator? if anyone has a
suggestions that would be greatly appreciated :)
thanks in advance - jung

here is part of the code:

If Me.chkSeriesInt = -1 Then
myreport = "'PROD6"
saveasname = "Prod6"
myshortname = rst.Fields("Dat aBaseLongName") 'Database name
myftpdir = rst.Fields("Dat abaseFTPAddress ") 'Location of files
on FTP server

'change FTP directory to correct location
'strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT
'CD & myftpdir AS Expr1;"
strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT
'CD " & myftpdir & "]' AS Expr1;"

Set qdf = dbs.CreateQuery Def("", strSQL)
qdf.Execute

If myshortname = "USBCERT" Then
myfiledate = Me.txtusbcertfi ledateSeriesInt
myopnum = Me.txtusbcertop numseriesint
myfilenumber = Me.txtusbcertfi lenumSeriesInt
'ElseIf myshortname = "USBMABS" Then
'myfiledate = Me.txtusbmabsfi ledateActive
'myopnum = me.txtusbmabsop numseriesint
'myfilenumber = Me.txtusbmabsfi lenumActive
Else '"FTCERT"
myfiledate = Me.txtftcertfil edateSeriesInt
myopnum = Me.txtftcertopn umseriesint
myfilenumber = Me.txtftcertfil enumSeriesInt
End If

strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT
'GET PROD6-" & Format(myfileda te, "mm-dd-yy") & "-" & myopnum & "-" &
myfilenumber ' & "-" & myreport
strSQL = strSQL & " " & Me.txtSavedData Location & myreport &
myshortname & ".txt 0'"
strSQL = strSQL & " AS Expr1;"

'i receive the error message on this line
Set qdf = dbs.CreateQuery Def("", strSQL)
qdf.Execute
End If
Nov 12 '05 #1
1 4586
It looks as though you're trying to issue FTP commands as SQL. You can't do
that.

There are 2 different approaches to FTP illustrated at "The Access Web"

http://www.mvps.org/access/modules/mdl0015.htm shows you how to create a
script file and call it from Access.

http://www.mvps.org/access/modules/mdl0037.htm shows you how to use the
Internet Data Transfer library.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

"JMCN" <pi******@yahoo .fr> wrote in message
news:27******** *************** ***@posting.goo gle.com...
I have an ftp program that i inherited and i tried to modify it to ftp
over my file however, i receive an error message :

run-time error '3075
syntax error (missing operator) in query expression " Get
PROD6-12-22-03-299-2
c:temp\'PROD6FT CERT.txt 0 As Expr1;'.

i'm clueless why i have a missing operator? if anyone has a
suggestions that would be greatly appreciated :)
thanks in advance - jung

here is part of the code:

If Me.chkSeriesInt = -1 Then
myreport = "'PROD6"
saveasname = "Prod6"
myshortname = rst.Fields("Dat aBaseLongName") 'Database name
myftpdir = rst.Fields("Dat abaseFTPAddress ") 'Location of files
on FTP server

'change FTP directory to correct location
'strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT
'CD & myftpdir AS Expr1;"
strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT
'CD " & myftpdir & "]' AS Expr1;"

Set qdf = dbs.CreateQuery Def("", strSQL)
qdf.Execute

If myshortname = "USBCERT" Then
myfiledate = Me.txtusbcertfi ledateSeriesInt
myopnum = Me.txtusbcertop numseriesint
myfilenumber = Me.txtusbcertfi lenumSeriesInt
'ElseIf myshortname = "USBMABS" Then
'myfiledate = Me.txtusbmabsfi ledateActive
'myopnum = me.txtusbmabsop numseriesint
'myfilenumber = Me.txtusbmabsfi lenumActive
Else '"FTCERT"
myfiledate = Me.txtftcertfil edateSeriesInt
myopnum = Me.txtftcertopn umseriesint
myfilenumber = Me.txtftcertfil enumSeriesInt
End If

strSQL = "INSERT INTO [tblFTPText] ( [Text String] ) SELECT
'GET PROD6-" & Format(myfileda te, "mm-dd-yy") & "-" & myopnum & "-" &
myfilenumber ' & "-" & myreport
strSQL = strSQL & " " & Me.txtSavedData Location & myreport &
myshortname & ".txt 0'"
strSQL = strSQL & " AS Expr1;"

'i receive the error message on this line
Set qdf = dbs.CreateQuery Def("", strSQL)
qdf.Execute
End If

Nov 12 '05 #2

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

Similar topics

3
2430
by: khan | last post by:
getting, error, 3075 Syntax Error (Missing Operator) in query expression '8WHERE .=1' Dim TotalQty As Integer TotalQty = DLookup("", "", "=" & Forms!!)
4
18218
by: khan | last post by:
getting, error, 3075 Syntax Error (Missing Operator) in query expression '8WHERE .=1' Dim TotalQty As Integer TotalQty = DLookup("", "", "=" & Forms!!)
1
2564
by: Mike N. | last post by:
Hello- I have a normal application split into a frontend and backend. The tables are in the backend. All tables open correctly from the backend. When in the OBJECTS window (F11) in the front end, one table will not open in datasheet view. I get the error message 3075 "Syntax error (missing operator) in query expression 'sort sequence'" All other tables open correctly, and they are all linked correctly. All I do is click on "OPEN" in...
5
3474
by: MARTINQC | last post by:
"SELECT ., .Category INTO tblSiteGroupActiveTicketRawData FROM .Base = 'AAAA') OR (.Base = 'BBBB')) AND (.Status != 'Closed');" Above SQL string fails with a runtime error 3075 syntax error (operator missing). I cannot figure this one out. Any assistance would be appreciated.
1
2612
by: kickergirl | last post by:
I recently created a database in Access 2000 that has been distributed to multiple people using various versions of Access. Each person is using it as a standalone database. The database has multiple forms that collect information on individual people. In fact there are 5 forms per person. The first and second form write data to the same table. The VBA code below is what happens when the user continues to the second form to enter more...
5
2394
by: Ledo | last post by:
I have a form that I want to show invoices in a date range. When clicking on the button I get the following error: Run Time Error 3075 Syntax error (missing operator) in query expression '(Invoice Date Between #08/27/2008 And #08/27/2008#)' Here is the code associated w/the error: Dim strReport As String 'Name of report to open. Dim strField As String 'Name of your date field. Dim strWhere As String 'Where...
22
2810
by: ozgenaga | last post by:
Hi guys, I am trying to insert new data records to a table but I am getting a run-time error. I would appreciate any kind of help. Here is my code: Sub WorstQueryEver() Dim db As Database
3
4653
by: timber910 | last post by:
Hello All, I'm in need of help here. I have build my query in a query builder in access as a select query. Query runs fine. Changed it to a make table query. Query makes table ok. Copy and pasted the SQL into my VBA on a form and bam! Run Time error 3075. I've checked and re-checked but I'm not any closer to finguring out where i'm off. If someone could help I would be so grateful! My full code is below. My error message states "Invalid use...
6
2885
by: ahd2008 | last post by:
Hi, I have a table for the enrollment of the employees: Employee ID Session ID Status(In-Progress;Complete;Cancel;No-Show;Waiting List) as Combo Box Plan Remarks
0
8362
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8878
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8560
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6200
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5671
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.