Results 1 to 3 of 3
  1. #1
    Pradnyanaik7 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    2

    How to get rid of Enter parameter value and run time error 3270

    Hi
    I am running the following code
    Private Sub Change_In_Company_Name_AfterUpdate()

    If Change_In_Company_Name.Value = True Then


    Me.Date1 = Format(Date, "dd/mm/yyyy")
    'Set rst = CurrentDb.OpenRecordset(Me.RecordSource)
    DoCmd.RunSQL ("Insert into Hub (Date1) values (Date);")

    End If
    End Sub
    and gets the error Enter parameter value and run time error 3270 Reserved error

    Please help
    Thanks
    Pradnya

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by Pradnyanaik7 View Post
    If Change_In_Company_Name.Value = True
    that's the parameter error. You're trying to check the actual function name in a conditional. Are you sure that's what's supposed to go on??

    Quote Originally Posted by Pradnyanaik7 View Post
    DoCmd.RunSQL ("Insert into Hub (Date1) values (Date);")
    that's the runtime error. take the outside () off first.

    These are just my two guesses.

  3. #3
    Pradnyanaik7 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    2
    Thanks Adam it worked

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

Similar Threads

  1. HELP NEEDED! Enter Parameter Value
    By lpfluger in forum Queries
    Replies: 4
    Last Post: 03-27-2011, 04:38 PM
  2. Enter Parameter Value Problem
    By batowl in forum Queries
    Replies: 4
    Last Post: 12-22-2010, 01:37 PM
  3. Enter Parameter Value
    By T001 in forum Access
    Replies: 1
    Last Post: 08-11-2010, 05:43 AM
  4. Enter Parameter Value
    By gutes2 in forum Forms
    Replies: 3
    Last Post: 03-03-2010, 05:03 PM
  5. Enter Parameter Value
    By plesser in forum Access
    Replies: 1
    Last Post: 11-08-2008, 10:27 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