473,405 Members | 2,261 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,405 software developers and data experts.

Access data transfers

Hi to all that might be able to help me.
I have created a pretty extensive database that has switchboards and all all of the like.
My delima is that I need to be able to trasfer single recods from a form to another table. I would like to do this with a command using an event proceedure. I am developing this for my fellow coworkers to enable them to more effiecienty view thier data and move data around as need arises. Here is what I have in a nut shell.

1. 3 Data Tables all struclturly the same

2. Each record is queried to a form specified by certain criteria.

3.I need to be able move the data from the form to a different table and back. and in the process delete the reocrd that is being moved form the current form/table

I know this sounds a little conveluded, but it is hard to explain online.

Thanks for any help.
May 2 '07 #1
3 1364
ADezii
8,834 Expert 8TB
Hi to all that might be able to help me.
I have created a pretty extensive database that has switchboards and all all of the like.
My delima is that I need to be able to trasfer single recods from a form to another table. I would like to do this with a command using an event proceedure. I am developing this for my fellow coworkers to enable them to more effiecienty view thier data and move data around as need arises. Here is what I have in a nut shell.

1. 3 Data Tables all struclturly the same

2. Each record is queried to a form specified by certain criteria.

3.I need to be able move the data from the form to a different table and back. and in the process delete the reocrd that is being moved form the current form/table

I know this sounds a little conveluded, but it is hard to explain online.

Thanks for any help.
Assumptions:
  1. 3 Fields exist on an Employees Form. They are [LastName], [FirstName], and [MI]
  2. The Table to copy the Record to is called tblData1 and it consists of 3 Fields: [Last], [First], and [Middle Initial]
  3. The following code will copy these 3 Fields on the Form to corresponding Fields in tblData1, then Delete the Form Record. Be advised that after deletion of the Record, there will be no Current Record, so move the Record Pointer wherever you so desire.
  4. Good Luck!
Expand|Select|Wrap|Line Numbers
  1. Dim MyDB As DAO.Database, MyRS As DAO.Recordset
  2.  
  3. Set MyDB = CurrentDb()
  4. Set MyRS = MyDB.OpenRecordset("tblData1", dbOpenDynaset)
  5.  
  6. With MyRS
  7.   .AddNew
  8.     MyRS![Last] = Me![LastName]
  9.     MyRS![First] = Me![FirstName]
  10.     MyRS![Middle Initial] = Me![MI]
  11.   .Update
  12. End With
  13.  
  14. 'Now, lets Delete the Record with no warnings
  15. DoCmd.SetWarnings False
  16.   DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
  17.   DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
  18. DoCmd.SetWarnings True
  19.  
  20. MyRS.Close
May 3 '07 #2
Thanks for your help.
the code is returning the last name field saying that it is not there.
The tables that I am using are Open2, Denied and Maintenance
The cliams go from Open2 to Denied or Maintenance
The fields that I have are:
Last Activity Date
Current ARU
First Name
Last Name
DOI
RTWC Comments
All of the dbs are structurally the same

Thanks for all of your help.
May 3 '07 #3
ADezii
8,834 Expert 8TB
Thanks for your help.
the code is returning the last name field saying that it is not there.
The tables that I am using are Open2, Denied and Maintenance
The cliams go from Open2 to Denied or Maintenance
The fields that I have are:
Last Activity Date
Current ARU
First Name
Last Name
DOI
RTWC Comments
All of the dbs are structurally the same

Thanks for all of your help.
You're quite welcome. Just make the appropriate substitutions and you'll be fine.
May 3 '07 #4

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

Similar topics

3
by: Mark | last post by:
hope you can help. I need to get my access db backend to sql. I have tried the upsizing wizard but the get message "overflow" and cannot get any further. I also use queries that reference two...
10
by: Michel | last post by:
Hi, We are from Belgium and are looking for someone who could write us a point-of-sale (POS) software for a DVD-film shop. I like it to be in MS-Access with some VBA or just VB. The...
3
by: Shmulik | last post by:
I have an application written in C# that creates a queue of items to process, connects via a TCP connection to a server on a Unix box, and then passes data files to the Unix box for processing...
0
by: Johanna | last post by:
Hello, Thread was being aborted exception is thrown by my asp.net application. I hope someone could help me with this error that I get in windows 2003 server. This error has not occured with...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
20
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP,...
2
by: =?Utf-8?B?SkRhdmlkZQ==?= | last post by:
Hello again! :( I'm trying to implement asynchronous DnD (and Copy/Paste) in a custom NSE: despite the lack of documentation, I found that i need my DataObject implement the optional interface...
12
by: AllYourSpam | last post by:
I work for a small company just over a year old. I have them sold on the idea of a database for tracking their sales and order entry (plus many other duties). We are going to develop our own...
13
by: BrokenMachine | last post by:
Hi there, I'm using Access 2003 and Word 2003 and I'm trying to import data from the word form to multiple access tables in a one to many relationship, but I can't seem to figure it out. I have...
7
by: JDOMPer | last post by:
Don’t misunderstand me – I use AJAX, but I think there is a far simpler, elegant alternative that just uses Javascript, the DOM and Php ( hence - JDOMP) for data transfers, and is cross-browser...
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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
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...

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.