473,503 Members | 7,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Combining fields in a table

This is probably something really easy, Well I hope anyhow.

I have three fields used for barcoding, in one table F1, F2 and F3. I want
the three fields to be able to be combined to complete an EAN13 barcode.
(F1=2 digits, F2 and F3 = 5 digits each. Totaling 12 digits. EAN13 assigns
the 13th digit)

From there, I need to then be able to scan that barcode into a single field
and have the first two digits be sent to F1 and the next 5 to F2 and the
next 5 to F3.

Does this make sense and is there an easy way to set something up. Any help
greatly appreciated.
Nov 13 '05 #1
1 1479
Scott wrote:
This is probably something really easy, Well I hope anyhow.
Once you know!
I have three fields used for barcoding, in one table F1, F2 and F3. I want
the three fields to be able to be combined to complete an EAN13 barcode.
(F1=2 digits, F2 and F3 = 5 digits each. Totaling 12 digits. EAN13 assigns
the 13th digit)
Why is it three fields, in the first place? The barcode seems to me a
"unit" piece of information.

If you need to group or sort on the first two digits, you can easily do
this in a query by using the expression Left(EAN,2). Same for the next
five digits: Mid(EAN,3,5)

But well. To compose the EAN from F1, F2, F3, use this expression: F1 &
F2 & F3. I assume the fields are Text type (they need not be numerical,
I think)
From there, I need to then be able to scan that barcode into a single field
and have the first two digits be sent to F1 and the next 5 to F2 and the
next 5 to F3.


You can devise some calculations that bring the parts into the fields
(using update queries and my expressions from above) but you will lose
this step altogether as you use just one field for the EAN.

Does that make sense?
Nov 13 '05 #2

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

Similar topics

8
8337
by: Ilan | last post by:
Hi all I need to add data from two Excel sheets (both on the same workbook) to an existing table in my SQL DB. The problem is that each sheet holds different fields for the same record, though...
5
2094
by: M.Stanley | last post by:
Hi, I'm attempting to create a query that will combine 2 columns of numbers into one. The followng comes from 1 table with 4 fields (A,B,C,D) A B RESULT 700 000 700000 700 001 ...
2
1548
by: Max | last post by:
Hello everyone, I have a task of combining two tables: tblPatient and tblSolution, related by a KEY field in a one-to-many relationship from tbl Patient to tblSolution, respectively. So, I have...
2
3391
by: Will | last post by:
I have a table, tblManinstructions with fields Code & InstructionID, one Code can have many InstructionID. I also have tblinstructions (fields instructionID & instruction). What I want to do is...
4
3480
by: justin tyme | last post by:
Hello Experts! I would like to combine (which may not be the correct technical term) two text fields from the same table in a query. Specifically, text field A and text field B are both lists of...
1
6530
by: John Smith | last post by:
I am trying to combine two lookup fields into one field for display on a form and a report. I understand the basics behind how to do this: I set the control source for a new text box control to...
1
1871
by: Macbane | last post by:
Hi, I really hope you can help. I have a databse which records interventions in patients drug therapy. Each record in the main table contains 3 fields to capture the 3 main drug names involved...
10
10573
by: H | last post by:
Hi, I have the following address fields in a table: flat_number house_name_or_number street village postal_town county postcode
2
3849
by: Don Barton | last post by:
I have 2 tables, Table 1 has Name, NameID, and A, B, C fields. Table 2 has Name, NameID, and D, E fields. Several of the Names/NameID are the same in both databases. I want my merged the tables...
0
7194
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
7070
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
7316
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...
1
6976
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
7449
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
5566
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,...
0
4666
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...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
729
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.