473,394 Members | 2,020 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,394 software developers and data experts.

Populating a hard coded form number

I have a database which has a Orders / Lineitems structure.

For each Order number certain lineitens are associated.

Each order is dot matrix printed on a triplicate state form that are sequentially ordered that can only accomodate 4 lineitems.

So this is an example;

order lineitem Form number
00001 xxxxx1 123456780
00001 xxxxx2 123456780
00001 xxxxx3 123456780
00001 xxxxx4 123456780

00001 xxxxx5 123456781
00001 xxxxx6 123456781

00002 xxxxx1 123456782

00003 xxxxx1 123456783
00003 xxxxx2 123456783
00003 xxxxx3 123456783

What is the easiest way to update the form number used in the lineitem table?
Jun 25 '13 #1
3 1898
Rabbit
12,516 Expert Mod 8TB
Update the form number to what? I'm confused as to what you're updating and what you want to update it to and how you want to tie those two elements together.
Jun 25 '13 #2
lineitem form number is blank initially in the lineitems table as it has not printed yet, then after printing the actual number of the form needs to get populated back to the lineitems table. They are continuous forms, so form number123456780 is captured once (in a form), then needs to get populated back using the logic of 4 per page, then next form number. sorry, it's really hard to explain.
Jun 25 '13 #3
Rabbit
12,516 Expert Mod 8TB
You have a couple of options.

You can either use VBA to step through the recordset row by row and assign the form numbers.

Or you can join the table to itself to create a ranking column that you use to assign the form numbers.

Pick whichever method you feel most comfortable using.
Jun 25 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Carl Hilton | last post by:
Trying to get Windows AD LDAP working to recognize who is accessing the page... I have successfully grabbed the user credentials and passed them off to LDAP, but that required me to pass off a hard...
1
by: Luke Airig | last post by:
I have an xsl stylesheet that merges data from two files based upon a common date/time field. Right now, one of the file names is hard-coded in the xsl file. Is there any way to make this...
1
by: SuryaPrakash Patel via SQLMonster.com | last post by:
Dear Reader , There are some details <facts>, which can be stored (Hard coded) in exe. example: Measurement Units and their relations. Now I want to print the list of those Measurement Units...
7
by: dixie | last post by:
I have been running some code from a form's on open event to run regedit if a registry key does not exist in the registry. It has been working fine, but I have had the path to the registry fix...
1
by: Luis Esteban Valencia | last post by:
have a website that uses both http and https. I am able to change any hard coded http links to relative paths. No problem. But, I have several aspx and ascx pages that contain hard coded links...
10
by: Brett | last post by:
If I have many hard coded values such as file paths, file names, timeouts, etc, where is the best place to define them? Meaning, in the case something needs changing for example, rather than...
0
by: tjonsek | last post by:
I am working with directories in PHP for the first time. I have code that I've changed multiple times to try different things. I would think this is pretty standard fare so I'm not sure why I can't...
0
by: Lubdha Khandelwal | last post by:
I'm using VS2005 to compile a file that only contains a single large (100MB) hard-coded char array. It looks like: unsigned char test = { 0x50,0x4b,0x3,0x4,0x14,0x0,0x0,0x0,0x8,0x0,0x5c,0x6c,...
4
Lokean
by: Lokean | last post by:
The problem: Company was bought out and we are bringing everything into complience. Passwords are not secure and do not need to be.(required by software we are using) Old passwords *may or may...
1
by: nitzanO | last post by:
Hey, I have a very big project with thousands and thousands of code lines. Until now we have used hard-coded passwords and we wish to stop. The problem is how detect all the places in the code...
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...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.