473,804 Members | 3,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5413
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*******@gmai l.comwrote in message
news:11******** **************@ g4g2000hsf.goog legroups.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.Table Defs("TABLE_NAM E").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*********@ya hoo.co.ukwrote in message
news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
>
--Jason Coleman

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

CurrentDb.Table Defs("TABLE_NAM E").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...@ya hoo.co.ukwrote:
--Jason Coleman

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

CurrentDb.Table Defs("TABLE_NAM E").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...@gmai l.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...@PurpleP andaChasers.Moe rtheriumwrote:
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.c om/
--
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
2470
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 (se below) then I run a query giving me a running total, which give me the first stock in the batch purchased by an individual, then I use this number and add the number of shares in order to find the number of the individuals' last share. So...
3
2138
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, by creating 5 similar tables (Monday, Tuesday, Wednesday, etc.) with the same fields (8, 9, 10, etc.) that link up to one table (Schedule) and then to the person. Not elegant, but I'm beginner. I've tried to design a form from scratch,...
3
3026
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 keep changing the field names which makes it nearly impossible to run any pre-generated queries etc. The solution really is to get someone to check the field names before importing the spreadsheet but I want to do it in code. I have written
3
2576
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 well. Short version :) For Each fld In tdf.Fields pos = InStr(fld.Name, "milk") If pos > 0 Then
10
15388
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 identical field names. The queries select a subset of the fields, so "Select *" is not really an option. Is there an easy way to change the source of a query, either in the design grid or SQL display? I suppose I could copy the SQL into WordPad...
5
2948
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 in the associated table that this form is based on. Is there anyway I can do this with vba ? I am using a different button object to open this form for the field it is to update. button1 updates unbound field name from text1 to 101Commnets...
4
2564
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 ReplicationID field, and make that the PK. I then need to change the Counselor field in tblClient to store the ReplicationID but show the Name, and not lose any data in the process.
7
3344
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 LastName, "x" As FirstName From qryStudents UNION SELECT StudentID, FullName, LastName, FirstName FROM qryStudents ORDER BY LastName;
1
2686
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 out the application (i.e. making copies of the database) to other locations (Reviews-NY, Review-Dallas etc). If was mentioned today in passing by the original developer that there is a way to change the title that appears on the switchboard without...
3
2628
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 recruiting calls per week, and so many of them have to result in at least an appointment. However, the "week" is Wednesday, 12:01pm to the following Wednesday, 12:00noon. So here are my questions... 1) Is there a way to change the standard week...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
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
10085
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
9163
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
7626
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
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.