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

Move selecetd data from a form to an unlinked table

Hi....

Using Access 2003..

I need help with the following...

I have a form with a series of option combo's which as selected,
filter data to the end chose..

I would like to record the final selected chose by moving the data to
an un-linked and separate table within the same database, which is
then a permanent record of the selection process for security reasons.

I did it once but can't recall how the code went ...

Appreciate any help
Thanks...

Sep 1 '07 #1
1 2765
Air code (untested):

Dim db as DAO.Database
Dim rs as DAO.Recordset
Set db = CurrentDB
Set rs = db.OpenRecordset(strQueryDefName)
rs.AddNew
rs("logdate") = Now
rs("fieldname1") = Me.txtControlName1
rs("fieldname2") = Me.cboControlName2
. . . 'set the other record fields from the
'user-entered values in Controls on
'the unbound form
rs.Update
rs.Close
Set rs = Nothing
Set db = Nothing

where strQueryDefName is a variable containing the name of the QueryDef you
use to open your Table, where "logdate" is a Field in your Record into which
you store the Date and Time of the update, where "fieldnameN" represents the
name of a Field in your Record, and where <prefix>ControlNameN are fields on
the Form.

But, even simpler, you could bind the Form to the Table where you want to
log the Choices, and open the Form in DataEntry mode, and they choices will
automatically be saved when you move off the Form.

Larry Linson
Microsoft Access MVP
<gs********@blueyonder.co.ukwrote in message
news:11**********************@r34g2000hsd.googlegr oups.com...
Hi....

Using Access 2003..

I need help with the following...

I have a form with a series of option combo's which as selected,
filter data to the end chose..

I would like to record the final selected chose by moving the data to
an un-linked and separate table within the same database, which is
then a permanent record of the selection process for security reasons.

I did it once but can't recall how the code went ...

Appreciate any help
Thanks...

Sep 1 '07 #2

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

Similar topics

0
by: Willoughby Bridge | last post by:
Hi - Having trouble getting a multipart series of forms to move to the next form. The problem line is: <form method="post" enctype="multipart/form-data" action="Data_Form1.php"> If the...
2
by: Paolo | last post by:
Friends, I have created a form named FRMNEWCLIENTS whose record source is a table named NEWCLIENTS. This table has a field named FILENUMBER. I have added on the form a combobox using the third...
1
by: A.J.M. van Rijthoven | last post by:
I have a table instrumenten (INSID Instrumentname, CATID), a table Categorie (CATID, Categorydescription), Netten (NETID, description of net) and a table (kpltblinstrument) that links the...
1
by: mar10 | last post by:
Hi - I have an Access 2000 database. Due to the way that tables flow and the way the user wants to enter data I'm trying to do the following - create a form that is NOT linked to a table. I...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
9
by: Joshua.Buss | last post by:
I am trying to move a record from one linked table to another within access, but I'm a complete beginner to VBA and don't know exactly where to begin. I have an access file that has the two...
3
by: Eric | last post by:
When i run my query it transfer last 4 digits of account number from one table to another and its wrong. There are two tables one i use for parsing. Second thru query i use to move data from temp...
2
by: Gorf | last post by:
Hi, all. Using Access 2K. I think what I'm trying to do is quite simple, but I've been out of the loop for a few years so I've forgotten much. I have a table of records each of which can...
1
by: silverstriip | last post by:
I have a table (Working_Year) that is storing a single field which is the year (current_year) that is selected by the user in my initial form when the database is loaded. Am I able to use that data...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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...

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.