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

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 3383
On Jun 12, 4:16 pm, "khe...@zahav.net.il" <khe...@zahav.net.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.net.ilwrote in message
news:11**********************@n15g2000prd.googlegr oups.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.net.ilwrote in message
news:11**********************@n15g2000prd.googlegr oups.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
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' ,...
1
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...
4
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
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...
2
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...
6
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...
1
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...
4
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...
2
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
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.