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

Sequence number in query use a starting number?

1
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 855
NeoPa
32,556 Expert Mod 16PB
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 Expert Mod 2GB
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
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
0
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...

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.