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

Access 97 Update query

Good morning everyone,

I'm producing an A97 database of Mining records. One of the tables has the
map sheet references as SH/55-14. The other table has the references as
SH55-17. I want to add the "/" to the data in table2 (or take it out of
Table 1). I have tried all sorts of update criteria such
as "*""*"*&"/"&"*""*" and variations on this but none of them want to work.
There are 12,000+ records in the db so to do it manually would be a pain in
the backside.

I'd appreciate it if anyone can help me or offer suggestions.

Thanks

Neville
Aug 18 '07 #1
2 4538
On 18 Aug 2007 03:13:17 GMT, Neville MADDEN <nr******@yahoo.com>
wrote:
>Good morning everyone,

I'm producing an A97 database of Mining records. One of the tables has the
map sheet references as SH/55-14. The other table has the references as
SH55-17. I want to add the "/" to the data in table2 (or take it out of
Table 1). I have tried all sorts of update criteria such
as "*""*"*&"/"&"*""*" and variations on this but none of them want to work.
There are 12,000+ records in the db so to do it manually would be a pain in
the backside.

I'd appreciate it if anyone can help me or offer suggestions.

Thanks

Neville
That could be done with a simple update query (assuming the data is
always in the format LL##.

UPDATE OtherTable SET
MapRef = Left([MapRef],2) & "/" & Mid([MapRef],3) ;

HTH,
Arch
Aug 18 '07 #2
On 18 Aug 2007 03:13:17 GMT, Neville MADDEN wrote:
Good morning everyone,

I'm producing an A97 database of Mining records. One of the tables has the
map sheet references as SH/55-14. The other table has the references as
SH55-17. I want to add the "/" to the data in table2 (or take it out of
Table 1). I have tried all sorts of update criteria such
as "*""*"*&"/"&"*""*" and variations on this but none of them want to work.
There are 12,000+ records in the db so to do it manually would be a pain in
the backside.

I'd appreciate it if anyone can help me or offer suggestions.

Thanks

Neville
In Access 97 it would be simpler to add the "/" rather than remove it.

Update YourTable Set YourTable.FieldName = Left([FieldName],2) & "/" &
Mid([FieldName],3) Where InStr([FieldName],"/") =0;

In Access 2000 or newer it would have been simpler to remove the "/".

Update YourTable Set YourTable.FieldName = Replace([FieldName],"/","")

no whee clause needed.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Aug 18 '07 #3

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

Similar topics

3
by: Mats | last post by:
It's good practice to validate input, not only where it should be coming from, but from anywhere it's possible to change or add input for a "client". If all user input is transfered using "post"...
14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
7
by: Bob | last post by:
Currently I am using this statement to translate 3 fields in my db thru Visual Basic. I import the data from one table to another then call the IFF statements and the NewDate to translate the...
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
6
by: John Baker | last post by:
Hi: As those who have looked at this newsgroup recently will realize, I am a neophyte with Access, although I have experienced with Approach (the Lotus product). There are things I could easily...
9
by: James Butler | last post by:
Our setup: Online db: MySQL Inhouse db: MS Access 97 with MySQL tables linked via ODBC Our issue: Almost every field updates successfully, except one. A scenario: Information is written to...
4
by: ET | last post by:
Hello! I have table with data that looks like this: Col1 Col2 Col3 1 pro1 some1 2 some2 3 some3 4 pro2 some4 5 some5
2
by: ILCSP | last post by:
Hello, I'm in the process of changing our 'normal' Access 2000 update queries to Update Pass Through Queries. We have a SQL server 2000 database and we're using an Access 2000 database as our...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
5
by: teddysnips | last post by:
Having upsized my client's back-end DB to SQL Server, the following query does not work ("Operation must use an updateable query"). UPDATE tblbookings INNER JOIN tblREFUNDS ON...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.