Concatenate the values of two fields of same table into another fi

D

DrewTheFather

I am trying to create an Inventory Management System using MS Access 2000 and
an ActiveX-Plus plug-in that will allow the use of BarCodes. In my Access
Db, there are only two tables (Computer, Equipment) that will need to store
the barcode for each instance. My problem arises when trying to devise a
scheme for a unique barcode to be randomly created for each instance. I can
randomly create a barcode for each instance of Equipment and Computer, but
they are not unique because using the AutoNumber feature in Access to create
the random number, it does not cross-reference with other table to see if the
“BarCode_Number†value already exists. This would mean that when I scan the
barcode with a reader, I could possibly get an error because the scan could
produce an instance of both Equipment and Computer.

To solve this, I would like to assign a concatenated value into a field of
the instance. For example, in the Computer table, I would like to
concatenate the values from the “PC_Type†field and the randomly generated
number value from the “BarCode_Number†field into the “Barcode†field. For
example, I could get a possible “BarCode†value of â€Laptop10000001â€. This
would also allow me to easily define the BarCode's 'ownership' to the type of
equipment.

Can someone please inform me on how to assign a concatenated value from two
fileds of the same table to a third field of the same table?

Thank you for your help,

Drew
 
H

Hermawih

Hi ,
I have no idea of how barcode reader works .

A. Is it possible using code before the barcode values entered into a table ?
If it is , I think this could not be a problem .
B. Is it possible your barcode value entered into a query ? If this can be
done , then this can be solved .
C. If your barcode reader put value directly into a table , then I have no
idea how to concatenate two field into third field on the same table . as far
as I know this can not be done .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top