Results 1 to 2 of 2
  1. #1
    wmeparker is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    1

    Error 3075 in Append Query with link data

    Hello All,
    I getting the following error from the code below. I have laid down data for hyperlinks before, in Access2003.
    I am now working in Access 2010 for machines using both 2003 and 2007. For some reason, this error has only happened in code laid down in 2010.
    Am I missing a change here? I can't find the problem, so any help would be appreciated. The debugger highlights the line
    that starts "linkBack = "...
    Best regards,
    Bill
    Error:
    Run-time error '3075':
    Syntax error (missing operator) in query expression
    'RejectEntry#\\server\directory\filename#'.
    Code:
    If IsNull(Forms!frmTrustIntermedResponse!Reasons) = False Then
    DoCmd.SetWarnings False
    Dim outSlip As String
    Dim linkBack As String


    outSlip = "RejectEntry#\\server\directory\" & Forms!frmTrustReqDet!ReqID & "rejectentry.htm#"
    linkBack = "INSERT INTO tblLinkBelt ( ReqID, LayDownDate, Flink )SELECT [Forms]![frmTrustReqDet]![ReqID] AS Expr1, Date() AS Expr2, " & outSlip & " AS Expr3;"
    CurrentDb.Execute linkBack
    DoCmd.OutputTo acOutputReport, "rptTrustCancellationWithFunds-html", acFormatHTML, outSlip, 0

    DoCmd.SetWarnings True

    Else
    MsgBox "No Reasons!", vbOKOnly, "Data Missing!"
    Exit Sub
    End If

  2. #2
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    Hi,
    Check this line of code:
    linkBack = "INSERT INTO tblLinkBelt ( ReqID, LayDownDate, Flink )SELECT [Forms]![frmTrustReqDet]![ReqID] AS Expr1, Date() AS Expr2, " & outSlip & " AS Expr3;"
    There should be space between SELECT and the ) parentheses.

    Also please check the "#" before and after "#" the date entry.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error 3075 when trying to preview report
    By natalie in forum Forms
    Replies: 2
    Last Post: 08-03-2010, 12:15 PM
  2. Append Query Error
    By lupis in forum Queries
    Replies: 1
    Last Post: 06-18-2010, 02:10 AM
  3. Runtime 3075 error
    By whm1 in forum Programming
    Replies: 4
    Last Post: 03-24-2010, 02:50 PM
  4. Error 3075 Missing Operator
    By KLynch0803 in forum Queries
    Replies: 5
    Last Post: 02-11-2010, 01:13 PM
  5. append query error
    By shashigk in forum Queries
    Replies: 2
    Last Post: 09-22-2009, 07:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums