473,386 Members | 1,799 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,386 software developers and data experts.

Append to Table based on results from form.

MSAccess 2013
Windows 7 professional

I have a search form where I type in partial lname, fname and/or employeeID. Let's say I get 5 records displayed by a form. I then want to double click on the record that I would like to append and this triggers an append query but it is currently trying to append all 5 records instead of the one record I double clicked on.

I would appreciate any assistance that anyone can provide.

Thank you in advance.
Jan 14 '14 #1
4 958
NeoPa
32,556 Expert Mod 16PB
If you would like some help with some code that isn't working then you should post the code along with an explanation of what exactly isn't working. Line numbers are very helpful on that score.
Jan 14 '14 #2
Not using any code. Using a form to search for records and that search button opens up another pop up form that displays the records. I created an event on double click and just told it to open the append query.
Jan 14 '14 #3
zmbd
5,501 Expert Mod 4TB
Yes you are running code; however, if you used the control wizards to create them then you are most likly using the Macro code language and not VBA.

Before we can help you we'll have to verify this:
Open the form in design view
Show the property sheet for the control
Events tab
On_Click event
[Event Procedure] = VBA Script
[Embedded Macro] = Access Macro Script



If you want to move to VBA then:

BACKUP THE DATABASE!
Once this is done it can not be undone and occationally things "break" in the process:

Convert the [Embedded Macro] to [Event Procedure] by:
Ribbon
Form Design Tools (context - Form must be selected and in design view)
Tools Group
Convert Forms Macros to Visual Basic.

You will need to do this for each form in the database.
Jan 14 '14 #4
NeoPa
32,556 Expert Mod 16PB
Maybe I should put that in simpler terms :
Whatever you have that isn't working, we would need to see before we can be a great deal of help to you.

As previously, a clear explanation of what isn't working, preferably with related line numbers, would also be necessary.

Without such information the question would be analogous to "I have a problem. Please help me fix it." It leaves us with very little scope to help.
Jan 15 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: dummie_q | last post by:
Hey, I am having some confusion about how to formulate this particular query. I have 2 tables. Table A has 4 columns say a1,a2,a3,a4 with the columns a1,a2,a4 forming the primary key. Table B...
1
by: Alan | last post by:
I am trying to use javascript modal popup windows (window.createModalWindow) to display HTML forms. The problem is - the form size and content varies. The same entry form, under different...
0
by: Dan | last post by:
I have an access database that contains a linked dbf table that is based on a shapefile in ARC-Editor. I would like to auto-update a table based on the new records that have been entered into GIS....
1
by: gretchen | last post by:
I'm a fairly new access user so my question may be simple but I still need help! I have a form and a subform. I want to run an append query and populate the subform based on values in the form. I...
1
by: vaiism | last post by:
I have attempted using both Updata and Append Queries to solve this problem, and I can't seem to get it to work. I have three forms that each have an ID#, and a subform with related scores to...
0
by: Filio | last post by:
Hi all: My problem is a little different than the earlier append table post. I have T1 with an autonum field as the primary key, and T2 with identical fields as the first, but no autonum. ...
16
by: Malcolm McLean | last post by:
I want this to be a serious, fruitful thread. Sabateurs will be plonked. Table-based programming is a new paradigm, similar to object-orientation, procedural decomposition, or functional...
3
by: sg2808 | last post by:
I have two tables and . The two tables are connected as many to many. I have a junction table to bridge the two tables. I have 10 different fields in table and 14 different fields in table . I...
1
by: Sandosh kumar | last post by:
i have two web forms... web form 1 has two drop down list box.. by selection items in this drop down lists ..& clicking next button.. i must call required specific table from ms-access in web form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.