Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9188103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:55:52+00:00 2026-06-17T19:55:52+00:00

I am trying to make an event when iputing data in a form on

  • 0

I am trying to make an event when iputing data in a form on access, after the text box looses focus, if the box is not null I want the ID and the value to get stored into another table. After trying with the code below I get “Runtime error 3061 Too few parameters Expected 1”. I have checked in debug mode and the values are getting carried over and brought to the string.

Private Sub Consolidate_LostFocus()
Dim queryString As String
queryString = "INSERT INTO [ReportMasterTable]([#], [Notes]) VALUES(" & [#].Value & ", " &   [Consolidate].Value & ")"

If Consolidate.Text <> vbNullString Then

    CurrentDb.Execute (queryString)

End If
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:55:53+00:00Added an answer on June 17, 2026 at 7:55 pm

    Is there any reason why you do not wish ti bind the form to the ReportMasterTable?

    If you really have a control and field called #, you are facing a world of trouble.

    If you have bound the form to ReportMasterTable and are also updating in a query, you are going to run into problems.

    The lost focus event is a very bad event to choose, any time anyone tabs through the form, the code will run. After update would be better.

    You are updating a text data type, but you have not used quotes.

    "INSERT INTO [ReportMasterTable]([#], [Notes]) VALUES(" & [#].Value _
        & ", '" &   [Consolidate].Value & "')"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to creat special event for jQuery. I want to make controled delay,
I am trying to make a mouse event work in my javaFx. i Want
I am trying to make a simple event handler. (Note, I'm not trying to
I have been trying to make a text changed event handling mechanism for my
I'm trying to make a simple event dispatcher system. To put it simply, I
I'm trying to make an editor for a game which has an event system,
i am trying to make an event logger for my cmd line application. However
I'm trying to make only the header of the TabItem send an event. So
Hi i am trying to make the Elapsed event of the Timer.Timer class fire
I am trying to make my ASP:Listbox throw an event in javascript that will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.