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

switching text fields with one another

Hello everyone, this is my first post.

Here's my problem. I have a database that consists of people and their contact information. Some of those people have upwards of 3 different mailing address, and sometimes the primary address needs to be switched with one of the other supplemental addresses for this contact. How would I setup a button to switch or flip-flop the address fields? I tried writing a macro for this, but when I ran it information from one address box would carry over, but not the other. I'm thinking that I might need some kind of a median, where the data is temporarily stored and then placed.
Feb 27 '07 #1
4 1449
Rabbit
12,516 Expert Mod 8TB
That's exactly what you'll need. A middle man who'll store the values of one before replacing it with the other. I never use macros so I don't know their functionality but this can be done with code.
Feb 28 '07 #2
Appreciate the response. I wasn't sure if my thinking was correct, but now I'm reassured.
Feb 28 '07 #3
Rabbit
12,516 Expert Mod 8TB
Not a problem. Let us know how you get along and if you have any other questions.
Feb 28 '07 #4
NeoPa
32,556 Expert Mod 16PB
Hello everyone, this is my first post.

Here's my problem. I have a database that consists of people and their contact information. Some of those people have upwards of 3 different mailing address, and sometimes the primary address needs to be switched with one of the other supplemental addresses for this contact. How would I setup a button to switch or flip-flop the address fields? I tried writing a macro for this, but when I ran it information from one address box would carry over, but not the other. I'm thinking that I might need some kind of a median, where the data is temporarily stored and then placed.
If you store your data properly (See Normalisation and Table structures), you won't need anything complicated at all. You simply update the flag which indicates the primary address. It may be a reference on the people table or even a flag on the address table. If the latter, then both records involved in the switch would require updating.
Mar 2 '07 #5

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

Similar topics

7
by: Dave B | last post by:
Does anyone know of a program that will read a text file and fill in a web form with the contents of that file? We need to get about 3000 records (5 fields to each record) into a database owned by...
0
by: Matias Silva | last post by:
I am still a novice when it comes to MySQL and I was wondering if switching the indexing from INDEX to a FULLTEXT would have any dramatic repercussions on current searches based on the the INDEX...
2
by: Roald Oines | last post by:
I have a query that uses another query as a data source (Access 97). One of the fields is a one-character string (it's parsed from an eight-character string in the underlying table using the Left$...
1
by: Randy | last post by:
Access= 2002 I'm NOT a Programmer, but I have used VB in the past to do some things ( Spaghetti Code King) so I have some understanding of Coding I need to replace a text field (teacher) in...
5
by: JRB | last post by:
Hi, I'm creating a small C#program that communicates through the serial port. I have a separate thread that continuously takes in data from an external device in a while loop. The problem is that...
1
by: Ryan Ternier | last post by:
I have two listboxes, and allow users to move items between them via the following function: function SwitchList(fbox, tbox){ var arrFbox = new Array(); var arrTbox = new Array(); var...
1
by: bparr | last post by:
All, I am using Windows Forms and have multiple XML datasets feeding various controls. Here is the situation. I have a master dataset that saves a document to the drive. Out of 50 fields in...
13
by: sonald | last post by:
Hi, Can anybody tell me how to change the text delimiter in FastCSV Parser ? By default the text delimiter is double quotes(") I want to change it to anything else... say a pipe (|).. can anyone...
2
by: JS | last post by:
Hi all, Im having some troubles with layers on a site im developing. I have two layers one has an image of an artists palette on it and each blob of paint is a link to a page on the site. That...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
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.