473,396 Members | 1,924 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.

Batch set feild value, How-to?

Here is what I would like to do. I use a program that indexes files. It
keeps data in a Access database. I want to change so data in it. Here is an
example

It has a field called 'Path' It contains data like 'C:\Folder'
It has a field called 'DiskLabel' It contains data like 'H:\'

I want to set the 'DiskLabel' field to match the drive letter of the 'Path'
field in all records.

Thanks for your help.
Nov 12 '05 #1
2 1245
rkc

"Grimalkin" <Gr******************@hotmail.com> wrote in message
news:Q_****************@nwrddc02.gnilink.net...
Here is what I would like to do. I use a program that indexes files. It
keeps data in a Access database. I want to change so data in it. Here is an example

It has a field called 'Path' It contains data like 'C:\Folder'
It has a field called 'DiskLabel' It contains data like 'H:\'

I want to set the 'DiskLabel' field to match the drive letter of the 'Path' field in all records.


Skipping advice on not storing redundant data because you can always
parse DiskLabel from Path when you need it, something like:

UPDATE Table1
SET DiskLabel = Left$([Path],3);
Nov 12 '05 #2
Thanks for the info. I know what you are saying about redundant data, I did
not create the database. I am not smart enough. It is the output of another
app. Music Libaray from wensoftware.com. Well I am going to see if I can
figure out what to do with my new found knowledge.

Thanks again.
Nov 12 '05 #3

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

Similar topics

9
by: Shaiboy_UK | last post by:
Hi all, Hopefully something simple here. I have written a form that takes data from a text box and updates it into an Access database. However, I want to also pass the local user date and...
1
by: TG | last post by:
How do you update an Access 2000 database table that records a checkbox value into a record? Thanks TG
1
by: code_wrong | last post by:
Hi, I'm reading this: http://www.catch22.net/tuts/selfdel.asp (Self Deleting Executables) and playing around with the batch file method .. trouble is I always get a command box at the end with...
1
by: J Smithers | last post by:
How do I execute a batch file from a C# Windows app? (the batch file would be an old style DOS .bat file).
12
by: tojigneshshah | last post by:
Hi, I have a situation where i have multiple batch and the each batch are sequence numbers. For each batch, the number should start with 1. For example: Col.no1 Col.no2 ------ ...
1
by: Uday | last post by:
hi everyone, I searched in faq's but couldn't find and solution... so here I post the popular question.. Env: Win2003 server / IIS6.0 Simple ASP page that runs a batch file. When I run the...
1
by: TARUN | last post by:
Hello All Please help me for understanding of use of Hidden Feild in Programming, I am a beginner of C#.NET, can anyone give me the idea about hidden feild like hidden textBox, hidden textArea...
3
by: hughie | last post by:
Has anyone done this? A windows webserver has a share on the same computer that contains some dos batch files. I'm trying to write a php page that will execute them. After much thrashing around...
2
cori25
by: cori25 | last post by:
I am backing up a file in a batch file but when I run the batch it stops in the middle asking whether the path is a directory or a file? How can I declare that it is a file so that it will not stop...
3
cori25
by: cori25 | last post by:
I am backing up a file in a batch file but when I run the batch it stops in the middle asking whether the path is a directory or a file? How can I declare that it is a file so that it will not stop...
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: 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
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...
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.