473,699 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

auto fill values in a table based on a column in the same table

Hi,
I'm a newbie, so I guess this is a question that expresses my total
ignorance, but never the less:
I have an old table into which I want to add a column that will
automatically update based on one of the existing columns. The
existing column contains a text string, and the new one should contain
a part of it, using text trancation functions (such as left, mid,
etc.. with which I'm familiar). Is This possible?
Should this be done using a macro on old records? how about new
records?

Thanks in advance,
Chen.

Jun 12 '07 #1
4 3402
On Jun 12, 4:16 pm, "khe...@zahav.n et.il" <khe...@zahav.n et.ilwrote:
Hi,
I'm a newbie, so I guess this is a question that expresses my total
ignorance, but never the less:
I have an old table into which I want to add a column that will
automatically update based on one of the existing columns. The
existing column contains a text string, and the new one should contain
a part of it, using text trancation functions (such as left, mid,
etc.. with which I'm familiar). Is This possible?
Should this be done using a macro on old records? how about new
records?

Thanks in advance,
Chen.
It is possible to do this however what is your objective? Why store
redundant data?

Jun 12 '07 #2

It is possible to do this however what is your objective? Why store
redundant data?
SInce this is an old DB, I think it will simplify future queries I
might need to add, provided this can be utilized in a simple enough
manner.

Jun 12 '07 #3

<kh****@zahav.n et.ilwrote in message
news:11******** **************@ n15g2000prd.goo glegroups.com.. .
>
>It is possible to do this however what is your objective? Why store
redundant data?
SInce this is an old DB, I think it will simplify future queries I
might need to add, provided this can be utilized in a simple enough
manner.
If you could be a little more specific, perhaps we'd have a better chance of
offereing a useful suggestion.

It would be particularly useful if you'd explain in detail what you mean by
"I have an old table into which I want to add a column that will
automatically update based on one of the existing columns." If you intend a
"Calculated Column," calculated based on another column in the same Record,
that's not the way to do it -- you should calculate it in a Query when you
need it.

Larry Linson
Microsoft Access MVP
Jun 13 '07 #4

Larry Linson :
<kh****@zahav.n et.ilwrote in message
news:11******** **************@ n15g2000prd.goo glegroups.com.. .

It is possible to do this however what is your objective? Why store
redundant data?
SInce this is an old DB, I think it will simplify future queries I
might need to add, provided this can be utilized in a simple enough
manner.

If you could be a little more specific, perhaps we'd have a better chance of
offereing a useful suggestion.

It would be particularly useful if you'd explain in detail what you mean by
"I have an old table into which I want to add a column that will
automatically update based on one of the existing columns." If you intend a
"Calculated Column," calculated based on another column in the same Record,
that's not the way to do it -- you should calculate it in a Query when you
need it.

Larry Linson
Microsoft Access MVP
Thank you for trying to help.
What you described above is actually what I meant - I need to update
one field based on another field in the same record, say if I have a
textual field A which is always an 8 characters' string, i'd like
field B of the same record to automatically update to represent the 3
leftmost characters of that string.
I have tried doing that using a query to no avail. Could you please
outline the procedure for doing that?

Thanks again,
Chen.

Jun 13 '07 #5

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

Similar topics

12
5663
by: Nick | last post by:
Is it possible to have multiple auto increments in one column? Say I have two tables... 1. table 'messageboards' with fields ('id' , 'name') 2. table 'messagethreads' with fields ('id' , 'messagethread' , 'messageboard_id') The 'messagethreads.id' column could have multiple auto increments. Then I could easily query a messageboard with ("SELECT * FROM
1
1605
by: trhq | last post by:
I want to automatically fill in the field values of my Form that uses a table (DIRECTORY) that has the following fields (sample); NAME PHONE ADDRESS ZIP The form has a combo box for ZIP that relates to a Query using ZIPCODE table that has fields: ZIP, CITY and STATE At first I was using it as a linked table that automatically
4
4708
by: Sherwood Botsford | last post by:
Table Markers ID (Primary Key) This&That PointClass (Combo box) Points Table PointClasses PointClass (primary key) Points (number) Description (Text)
3
2370
by: MatGyver | last post by:
I am going nuts trying to figure this out, any help will be appreciated. I have an existing table called "Parts". And in this table I have the following columns: "ID" "Part Number" "Part Description" "Part Cost" I am trying to build an order form that will have "Part Number" and "Part Cost" both on the form and in that forms specific table.
2
2653
by: Joanne Lewis | last post by:
I am having a great deal of difficulty with a form. Basically, I would like to enter an account # and have the account #, patient first name, and patient last name automatically fill. The form Record Source table is "InitialInfoFromSW". I want to enter an account #, have it look in another table called "AS400 Imported Data", and automatically fill in the fields called "LastName" and "FirstName" into the form's text boxes. It was...
6
5066
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I do with the 1st column ? (Below I have a "1" in place for now). Also, Does the datase.AcceptChanges(); updates the changes to the database? Which command do I use to update the changes in dataset back to the Access database table? Thanks, Alpha...
1
2353
by: Jim | last post by:
I have a new database in which I have a form where in one field I type a letter A, B, C or D and the field next to it autofills (auto lookups) with a description associated with the specific letter. If I edit the description for one record, it edits the same for all records in which I've applied the same autofill (auto lookup). I'm set up where the letters come from a lookup combo box (limit to list "Yes") and the record source for the...
4
13964
by: whamo | last post by:
I have the need to populate a field based on the selection in a combo box. Starting out simple. (2) tables tbl_OSE_Info and tbl_Input; tbl_OSE_Info has three fields: Key, OSE_Name and OSE_Wt tbl_Input has three fields: OSE_Job, OSE_Name, OSE_Wt I have populated tbl_OSE_Info table. I need to create a form that will store the data in tbl_Input I have racked my brain so much trying to figure out how to auto populate a field based on a...
2
3320
by: Ronald | last post by:
I hope somebody can help. I can't get into the specifics of my project, but I'll try to create a simple example: tblVehicle * VIN (text box) * Make (text box) * Model (text box) frmRepair
0
8618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8916
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8885
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7752
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.