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

Setting up field to have contents of another field

MN
I am using a program called IDWorks which is reading and writing to an
MS Access format database. The IDWorks program can't adjust the
formatting on a displayed field in a way that we need so I need a way to
duplicate a field in Access so that it will have the exact copy of the
other field. Is there some way to have a field definition set up so that
it has the exact same contents? (ex. an entry such as "=[field1]"). For
that second field, is there a way to display only the first character of
the field through formatting? (ex. display "J" if the full field content
is "John")

Thanks.
Aug 1 '06 #1
7 1988
On Tue, 01 Aug 2006 19:34:42 -0400, MN <mn@mn.mn.invalidwrote:
>I am using a program called IDWorks which is reading and writing to an
MS Access format database. The IDWorks program can't adjust the
formatting on a displayed field in a way that we need so I need a way to
duplicate a field in Access so that it will have the exact copy of the
other field. Is there some way to have a field definition set up so that
it has the exact same contents? (ex. an entry such as "=[field1]"). For
that second field, is there a way to display only the first character of
the field through formatting? (ex. display "J" if the full field content
is "John")

Thanks.
It's almost certainly NOT necessary to store the field redundantly in
order to do this. No, you cannot have a Table set up to automatically
do so.

Can IDWorks link to a Query, rather than directly to a Table? If so,
you can just select the field twice. Or, to see only the first
character of the field, use a calculated field such as

Initial: Left([field1], 1)
John W. Vinson[MVP]
Aug 1 '06 #2
MN
In article <tk********************************@4ax.com>,
John Vinson <jvinson@STOP_SPAM.WysardOfInfo.comwrote:
On Tue, 01 Aug 2006 19:34:42 -0400, MN <mn@mn.mn.invalidwrote:
I am using a program called IDWorks which is reading and writing to an
MS Access format database. The IDWorks program can't adjust the
formatting on a displayed field in a way that we need so I need a way to
duplicate a field in Access so that it will have the exact copy of the
other field. Is there some way to have a field definition set up so that
it has the exact same contents? (ex. an entry such as "=[field1]"). For
that second field, is there a way to display only the first character of
the field through formatting? (ex. display "J" if the full field content
is "John")

Thanks.

It's almost certainly NOT necessary to store the field redundantly in
order to do this. No, you cannot have a Table set up to automatically
do so.

Can IDWorks link to a Query, rather than directly to a Table? If so,
you can just select the field twice. Or, to see only the first
character of the field, use a calculated field such as

Initial: Left([field1], 1)
I wish that I could do something like that but I'm unfortunately limited
by what IDWorks can access. It basically only accesses the tables and
data. It cannot access queries, forms, or reports.
Aug 2 '06 #3
On Tue, 01 Aug 2006 20:13:27 -0400, MN <mn@mn.mn.invalidwrote:
>I wish that I could do something like that but I'm unfortunately limited
by what IDWorks can access. It basically only accesses the tables and
data. It cannot access queries, forms, or reports.
TRULY bizarre. It can access Forms but not queries!!!??

Two suggestions then: use a Form, with two textboxes bound to the same
field (or, use one with the =Left() expression); or, run an Update
query to populate the second field.

How is data being entered into the table normally?

John W. Vinson[MVP]
Aug 2 '06 #4
Tim
In article <ti********************************@4ax.com>,
John Vinson <jvinson@STOP_SPAM.WysardOfInfo.comwrote:
On Tue, 01 Aug 2006 20:13:27 -0400, MN <mn@mn.mn.invalidwrote:
I wish that I could do something like that but I'm unfortunately limited
by what IDWorks can access. It basically only accesses the tables and
data. It cannot access queries, forms, or reports.

TRULY bizarre. It can access Forms but not queries!!!??

Two suggestions then: use a Form, with two textboxes bound to the same
field (or, use one with the =Left() expression); or, run an Update
query to populate the second field.

How is data being entered into the table normally?

John W. Vinson[MVP]
It gets weirder ... it actually can't even access a form. Basically,
IDWorks is just using an Access-format database to store its data. It's
similar to another program writing its data to a comma-delimited text
file or an XML file.
Aug 2 '06 #5
On Wed, 02 Aug 2006 00:12:04 -0400, Tim <ti*@nospam.org.comwrote:
>It gets weirder ... it actually can't even access a form. Basically,
IDWorks is just using an Access-format database to store its data. It's
similar to another program writing its data to a comma-delimited text
file or an XML file.
OK. So IDWorks writes data into this table, and you need to - what -
modify the table? add this other one-letter field? - and have IDWorks
read the new table back out?

WHat's the process here? What are you actually trying to accomplish,
in Access?

John W. Vinson[MVP]
Aug 2 '06 #6
Tim
In article <k8********************************@4ax.com>,
John Vinson <jvinson@STOP_SPAM.WysardOfInfo.comwrote:
On Wed, 02 Aug 2006 00:12:04 -0400, Tim <ti*@nospam.org.comwrote:
It gets weirder ... it actually can't even access a form. Basically,
IDWorks is just using an Access-format database to store its data. It's
similar to another program writing its data to a comma-delimited text
file or an XML file.

OK. So IDWorks writes data into this table, and you need to - what -
modify the table? add this other one-letter field? - and have IDWorks
read the new table back out?
Exactly. That way I can apply different formatting to the 2 different
fields which both have the same data -- I'd like one field to just
duplicate the data on the fly, kind of like a shortcut in Windows or a
symbolic link in Unix. It involves a problem with needing to place the
full name on the front of an id card and encoding just a portion of the
name on the magnetic stripe.
WHat's the process here? What are you actually trying to accomplish,
in Access?

John W. Vinson[MVP]
Aug 2 '06 #7
On Wed, 02 Aug 2006 01:47:28 -0400, Tim <ti*@nospam.org.comwrote:
>Exactly. That way I can apply different formatting to the 2 different
fields which both have the same data -- I'd like one field to just
duplicate the data on the fly, kind of like a shortcut in Windows or a
symbolic link in Unix. It involves a problem with needing to place the
full name on the front of an id card and encoding just a portion of the
name on the magnetic stripe.
Then you'll need to run an Update query in some appropriate event.

A Format *will not do what you want*. Formatting will change how text
is displayed, but it will not *truncate* or change the actual content
of text; and formatting isn't applied when you export data in any
case.

John W. Vinson[MVP]
Aug 2 '06 #8

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

Similar topics

2
by: Jim Witte | last post by:
Hi, How do I set a file input element? If it's a text input, I can set the value property. But this doesn't work with file inputs. And no, I can't change it - I'm writing a script to...
2
by: Hasan Ammar | last post by:
Is it possible to set up hotkeys using onkeypress? I know it can be done with the usual alphanumeric keys, but what about function keys? or using ctrl/alt combinations? Does anybody have a...
12
by: Adam Lipscombe | last post by:
Folks, I need to get the contents of a form attribute. In Read/Write mode this is field, so I can use getElementById("name").value In ReadOnly this is just plain text, so I can use...
4
by: Jonathan Strange | last post by:
I have a website that uses Forms, and if I complete the form fields, submit the form, realise that there was an error or omission, and then hit the Back button, the form fields are all empty. This...
4
by: Omey Samaroo | last post by:
Dear Access Gurus, Can anyone provide me with some much needed assistance. I would like to combine the contents of 3 text fields into one field. Can someone provide some code or a method to do...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
4
by: PJ6 | last post by:
From a control's onkeypress the below javascript snippet is executed. I am attmpting to set the value of a hidden field... I believe I'd be able to get the contents of the hidden field by using...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
8
by: ivijayan | last post by:
HI. I have the following query:- How do i create field which updates its contents on the basis of data in another field in same record. especially if I have a Date field, how can I change the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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.