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

Modify Table A with data from Table B

Hello,

I have a table that contains the name and location of backup tapes.
The first Column has the tape ID (a four digit number) and the second
column has a drop down box of possible locations such as "In Drive" or
"In Storage". I also have a list of tape id's that were moved to
storage. (the list is currently an access table) I would like to
create a macro that would change the location column of the table to
"In Storage". How could I accomplish this? any help is appreciated.

Apr 18 '07 #1
1 1584
GH
On Apr 18, 3:12 pm, Cryptographic_...@yahoo.com wrote:
Hello,

I have a table that contains the name and location of backup tapes.
The first Column has the tape ID (a four digit number) and the second
column has a drop down box of possible locations such as "In Drive" or
"In Storage". I also have a list of tape id's that were moved to
storage. (the list is currently an access table) I would like to
create a macro that would change the location column of the table to
"In Storage". How could I accomplish this? any help is appreciated.
Is this a one-time update event, or do you need to perform this change
every time another tape is moved to storage? You can perform a one-
time update using an update query -- UPDATE tblTapeLocation SET
CurrentTapeLocation = "In Storage" WHERE TapeID IN (SELECT TapeID FROM
tblTapesInStorage) -- but this is not sufficient for ongoing
operations where you want to automate this behavior. If you are using
a form to identify tapes moved to storage, you can fire an event that
updates your other table when a tape is marked as moved, but you would
need to code the specific update to the record being moved. Also, if
you need these updates to occur when a tape is placed back in use,
that would require logic in the code that allows marking tapes as In
Drive again.

HTH
- GH

Apr 18 '07 #2

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

Similar topics

1
by: Franco Fellico' | last post by:
Hi. Suppose to have read and displayed (using PHP) a group of row of a DB table on a dinamyc table on a HTML/PHP page. The number of row displayed could be from 1 to n. Each row contains...
0
by: anzenews | last post by:
Hello! I have a weird problem... The application I use issues this SQL from time to time: alter table t modify id int(6) unique not null auto_increment; The problem is that this SQL adds a...
0
by: karenmiddleol | last post by:
The following code works fine I can connect to a SQL database and list all the records in the Orders table onto a web page. Now our users want me to modify it so that each row displayed as a...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
12
by: Michael B Allen | last post by:
Is it legit to modify static data like the following code? #include <stdlib.h> #include <stdio.h> struct tbl { int i; char *s; };
4
by: MikeY | last post by:
Hi everyone, I have posted earlier this week, but I'm still scratching my head trying to figure out how to change/modify my data back to my db. Using C# Windows forms. I am trying to learn how...
1
by: alps | last post by:
Hello friends , I am basically a delphi developer and am new to the VB.net technology.Can anyone out there give me a typical VB.net solution for a dataentry program for a table.Lets say...
4
by: mimasci | last post by:
Hi, I have tried to write a code that allowed me to modify the value of the cells selected in a table, with excel has been easy. How one approaches selected cells? (To modify the value) How...
4
by: Bob | last post by:
Hi all, I'm trying to import data, modify the data then insert it into a new table. The code below works fine for it but it takes a really long time for 15,000 odd records. Is there a way I...
2
by: priyammaheshwari | last post by:
Hi All, I have a huge MS Access database in which requests are added at regular basis as in almost every minute.I have to modify the data type of one of the coloumns in this database,but i cant...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...

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.