Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:25:37+00:00 2026-06-09T13:25:37+00:00

I came across this How Do I Sequentially Number Records in an Access Query

  • 0

I came across this How Do I Sequentially Number Records in an Access Query
in order to do what I was trying to do based on this stackoverflow question I posted (which I never got to do what I was after) but each time that I try to add the AS Counter to the query I get

The expression you entered contains invalid syntax
You may have entered an operand without an operator

using the following sql:

SELECT Maintable.NumBR, Maintable.*, [Ehow] AS Expr1
FROM Maintable
WHERE (((Maintable.[NumBR])="" 
  Or (Maintable.[NumBR]) Like "3101" 
  Or (Maintable.[NumBR]) Like "3541" 
  Or (Maintable.[NumBR]) Like "4381" 
  Or (Maintable.[NumBR]) Like "AS3281" 
  Or (Maintable.[NumBR]) Like "4260" 
  Or (Maintable.[NumBR]) Like "4315" 
  Or (Maintable.[NumBR]) Like "4330" 
  Or (Maintable.[NumBR]) Like "4382" 
  Or (Maintable.[NumBR]) Like "9410" 
  Or (Maintable.[NumBR]) Like "9570" 
  Or (Maintable.[NumBR]) Like "AS3710" 
  Or (Maintable.[NumBR]) Like "AS4450" 
  Or (Maintable.[NumBR]) Like "K400" 
  Or (Maintable.[NumBR]) Like "3100" 
  Or (Maintable.[NumBR]) Like "3130" 
  Or (Maintable.[NumBR]) Like "3280" 
  Or (Maintable.[NumBR]) Like "3495" 
  Or (Maintable.[NumBR]) Like "3540" 
  Or (Maintable.[NumBR]) Like "3610" 
  Or (Maintable.[NumBR]) Like "3700" 
  Or (Maintable.[NumBR]) Like "4110" 
  Or (Maintable.[NumBR]) Like "4200")

AND (([Ehow])=DCount("[NumBR]","[Maintable]"," [NumBR] <= " & [NumBR])));

EDIT the question posed in the previous stackoverflow question answers this question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:25:38+00:00Added an answer on June 9, 2026 at 1:25 pm

    The AS Counter phrase is not needed in your query. In the linked example, that’s added to the SELECT statement to alias the column; in your example you’re working with the WHERE clause, so that AS phrase wouldn’t do anything (and is actually invalid).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this bit of vba code posted in another SO question. Is
I came across this problem, I have a number of type long which represents
I came across this syntax which i have not seen before struct A {
Came across this question: explain the role of dominators in reverse engineering Java code.
Came across this error when trying out the ruby on rails tutorial section with
I came across this question from interviewstreet.com Machines have once again attacked the kingdom
I came across this page which uses Modernizr library.I couldn't make out how this
I came across this thread Node.js HTTPS Secure Error which mentions that the tls
I came across this interview question Many irregularly shaped objects are moving in random
I came across this answered question , but I can't seem to compile the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.