473,474 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sequence number in query use a starting number?

1 New Member
Hello,

Need help in creating sequence number in a query using a starting number. For example i want to use the starting sequence number as 5

Expand|Select|Wrap|Line Numbers
  1. ------------------
  2. Seqnum | color
  3. ------------------
  4. 5        red
  5. 6        black
  6. 7        orange
  7. 8        blue
Any help is highly appreciated

Thanks
Sep 21 '14 #1
2 856
NeoPa
32,556 Recognized Expert Moderator MVP
I know of no way short of using a function. Even then, you'd need to seed it prior to each instance of running the query.

OTOH it can easily be done in a report, as TextBox controls have a RunningSum property.
Sep 21 '14 #2
twinnyfo
3,653 Recognized Expert Moderator Specialist
fgwapo,

Will your results always begin with 5 or will this vary? Also, how many values will you have, ultimately? There may be some interesting ways to accomplish this, but we would need more information to properly assist.
Sep 22 '14 #3

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

Similar topics

13
by: Hako | last post by:
I try this command: >>> import string >>> string.atoi('78',16) 120 this is 120 not 4E. Someone can tell me how to convert a decimal number to hex number? Can print A, B, C,DEF. Thank you.
7
by: hasanainf | last post by:
Hi all, I have two querys QueryPurchased ProductID Location TotPcs Prod1 Loc1 100 Prod2 Loc1 50 Prod3 Loc1 150 Prod3 Loc3 150
1
by: | last post by:
How can I obtain the record number or row number for a record while in form view? Thank you in advance for any information. R. L.
14
by: dharmdeep | last post by:
Hi friends, I need a sample code in C which will convert a Hexadecimal number into decimal number. I had written a code for that but it was too long, I need a small code, so request u all to...
2
by: c2h | last post by:
pls help me to solve this problem : using VB to convert a base 8 number into decimal number ..... thks
2
by: Hets | last post by:
Write a C program which can convert decimal number into binary number.
1
by: justB | last post by:
Hi I'm new to this. Could I get the C code to print the largest prime number of a number given by a user? I want to promt the user to input a valid number >0, and return its largest prime number. ...
0
by: Rajgodfather | last post by:
I am getting the end couldn't error while validating xml file against xsd. The xml file looks perfect. XML: <event id="1"> <!-- Successful event. --> ...
17
luvgis
by: luvgis | last post by:
I'm trying to find a simple way to update a column with sequential numbers without using a recordset. Here is the catch, each agency has a range such as Anaheim - 6,000 range Buena Park - 7,000...
0
by: aamirshaikh86 | last post by:
i want to retrieve number of fields,number of rows and name of fields from the ADORecordSet_mysql, so can anyone help me out. Note: i am retrieving the query form database using Retrieve()...
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
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
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.