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

Changing a Field Name in a Table

Hello,

I have a [Sold?] field in a table that I need changed to [Sold] due to
some barcode scanning software that will be using the ODBC link to
this database that does not like to work with '?' in the field name,
that my lovely predecessor left there for me.

This field is used in a great many of the queries, reports and forms
that we have here for this database. So, I was wondering if there is a
way to change that field name and have all the places that it shows up
change as well so that I don't have to spend a week going through the
Database by hand.

Thank you,

--Jason Coleman

Jul 4 '07 #1
8 5387
one product that i've seen recommended numerous times in these newsgroups is
Speed Ferret. here's a link to one such post, by MVP Doug Steele.
http://groups.google.com/group/micro...c5bff380fe4bb1
if you do an Advanced Search in Google Groups for "Speed Ferret", you'll get
hundreds of posts, many that also mention other solutions in addition to
Speed Ferret.

hth
"colemanj4" <co*******@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
Hello,

I have a [Sold?] field in a table that I need changed to [Sold] due to
some barcode scanning software that will be using the ODBC link to
this database that does not like to work with '?' in the field name,
that my lovely predecessor left there for me.

This field is used in a great many of the queries, reports and forms
that we have here for this database. So, I was wondering if there is a
way to change that field name and have all the places that it shows up
change as well so that I don't have to spend a week going through the
Database by hand.

Thank you,

--Jason Coleman

Jul 4 '07 #2
--Jason Coleman
try on a backup of your MDB - you might get lucky...

CurrentDb.TableDefs("TABLE_NAME").Fields("[Sold?]").Name = "Sold"

I was surprised it actually cascaded change into queries. HOWEVER
changing other fields didn't work ALL the time.
But thats the Access way I'm starting to find out, does it sometimes
works and leaves it when its too difficult...

Jul 4 '07 #3
sounds like you have the Name Autocorrect option turned ON in your database.
i strongly recommend that you turn it OFF; for more information, see
http://allenbrowne.com/bug-03.html

hth
"Yitzak" <te*********@yahoo.co.ukwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>
--Jason Coleman

try on a backup of your MDB - you might get lucky...

CurrentDb.TableDefs("TABLE_NAME").Fields("[Sold?]").Name = "Sold"

I was surprised it actually cascaded change into queries. HOWEVER
changing other fields didn't work ALL the time.
But thats the Access way I'm starting to find out, does it sometimes
works and leaves it when its too difficult...

Jul 4 '07 #4
Thanks Tina I didn't know, you are correct I had this switched on.

Actually not a big issue with my mdb, I've since moved all data to
MSSQL server and all VBA code to VB app. And just left with virtually
a shell of an mdb no forms etc.

Would like to bin Access completely but its front end is excellent
(the only part) and the power users at my place are quite adept at
designing their own querries - damm shame that...

Jul 4 '07 #5
All that did was change the one field... it didn't propogate up
through all the queries, forms, reports, etc.
On Jul 4, 12:55 pm, Yitzak <terrysha...@yahoo.co.ukwrote:
--Jason Coleman

try on a backup of your MDB - you might get lucky...

CurrentDb.TableDefs("TABLE_NAME").Fields("[Sold?]").Name = "Sold"

I was surprised it actually cascaded change into queries. HOWEVER
changing other fields didn't work ALL the time.
But thats the Access way I'm starting to find out, does it sometimes
works and leaves it when its too difficult...

Jul 4 '07 #6
On 4 Jul, 18:53, colemanj4 <colema...@gmail.comwrote:
see Tina's previous post - that one liner worked because of an option
selected. But it is a dodgy thing to have enabled...
Jul 4 '07 #7
Yitzak wrote:
Would like to bin Access completely but its front end is excellent
(the only part) and the power users at my place are quite adept at
designing their own querries - damm shame that...
That's why I use it as an FE for Oracle. Nothing worng with Access in
that capacity at all, nor with its Jet file server back end , if it's
used properly.

As Tina says, turn off auto-corrupt. Speed Ferret is fine and suggested
often by many high level users here. I use another one, Rick Fisher's
excellent Find and Replace http://www.rickworld.com/
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Jul 5 '07 #8
Tim:

Thank you so much. That Find and Replace by Rick worked beautifully!
Just saved me about a weeks worth of combing through queries, forms
and reports! Thank you!

--Jason Coleman
On Jul 5, 12:00 am, Tim Marshall
<TIM...@PurplePandaChasers.Moertheriumwrote:
Yitzak wrote:
Would like to bin Access completely but its front end is excellent
(the only part) and the power users at my place are quite adept at
designing their own querries - damm shame that...

That's why I use it as an FE for Oracle. Nothing worng with Access in
that capacity at all, nor with its Jet file server back end , if it's
used properly.

As Tina says, turn off auto-corrupt. Speed Ferret is fine and suggested
often by many high level users here. I use another one, Rick Fisher's
excellent Find and Replacehttp://www.rickworld.com/
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Jul 5 '07 #9

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

Similar topics

16
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables...
3
by: Geoff Matthews | last post by:
I apologize for the basic question, but MS's documentation has been no help at all. I'm working on a database, and need to create a form for schedules, M-F, 8-4. I've settled on an easy way out,...
3
by: Michael | last post by:
Hi everyone, I am trying to change the field names for a table that is being exported via Excel. Its a spreadsheet that our National Office sends us but even after promise after promise they...
3
by: sparks | last post by:
I was copying fields from one table to another. IF the var name starts with milk I change it to egg and create it in the destination table. It works fine but I want to copy the description as...
10
by: Marizel | last post by:
I'm not sure there's an easy solution to this, but thought I'd ask. I often find myself with a query which I'd like to reuse, but with a different datasource. These datasources generally have...
5
by: David | last post by:
Hi I seem to be getting nowhere with this. I am opening a form which will be used to input Notes into different fields in a table. My problem is changing the unbound field name to the field name...
4
by: Blake D. | last post by:
I have two tables (tblClients and tblEmployees). Field in tblClient uses the PK of tblEmployee as a lookup. Currently, the PK is a text field containing the person's name. I want to add a...
7
by: Arnold | last post by:
Greetings Gurus, In a mainform's header, I have a combobox named comboStudents. The rowsource for this combobox is: SELECT -999 As StudentID, "<Add New Student>" As FullName, "aaa" As...
1
by: mplus_2000 | last post by:
I have recently inherited a database. The switchboard (and other forms) displays the name of the database on it (top, center). Currently the name that appears is Reviews. There are plans to roll...
3
by: sbaird | last post by:
Aloha from Hawaii, I'm beating my head on the wall here. I have a recruiting contact managment database I'm trying to create. Managers (there ar 14 of them) have to make a certain number of...
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...
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
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
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...
0
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...
0
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,...

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.