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 835453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:49:48+00:00 2026-05-15T04:49:48+00:00

I am going to be crazy I think. Please Help. I have a table

  • 0

I am going to be crazy I think. Please Help.

I have a table which fields are Date, No, Turnover, TotalWin, Opencredit, Handpay, Billin, gamesplayed and I am trying to write sql in vb.net that will show me previous day value but I cant. Here is what I am trying to do.

SELECT Meter.* 
FROM 
  Meter AS Previous, 
  Turnover As Prev_turnover  
WHERE Date = '
  SELECT Max(Date) 
  FROM Meter AS Previous2
  WHERE Previous2.Date < Date 
  AND Previous2.No = ‘No' 
  AND Previous.No = ‘No’ 

What is wrong in where I am doing mistake I really don’t know. If anyone help will be appreciated.

Thanks


Ok Thomas I am not able to give correct answer to your question because first time in my Life I am trying to write sql. I was doing this with MSAccess and it was easy. Now I am getting pretty simple error I think with this code but I can’t find solution again. What is wrong.

SELECT [Date], [No], Turnover, TotalWin, GamesPlayed, CreditIn, BillIn, HandPay
FROM Meter As Previous,
Turnover As Prev_turnover WHERE [Date] = ‘SELECT Max([Date]) FROM Meter As Previous2 WHERE Previous2.[Date]<[Date] AND Previous.[No]=[No]’


So what about this error “No value given for one or more required parameters”

Now I am with that code:

SELECT Meter.[Date], Meter.[No], Meter.Turnover, Meter.TotalWin, Meter.GamesPlayed, Meter.CreditIn, Meter.BillIn, Meter.HandPay
FROM Meter As Previous,
Turnover As Prev_turnover WHERE Meter.[Date] = ‘SELECT Max(Meter.[Date]) FROM Meter As Previous2 WHERE Previous2.[Date]

  • 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-05-15T04:49:48+00:00Added an answer on May 15, 2026 at 4:49 am

    I found answer

    SELECT     Date, No, Turnover, [Total Win], [Games Played], [Credit In], [Bill In], [Hand Pay]
    

    FROM tblMeter
    WHERE (Date >= DATEADD(day, DATEDIFF(day, 1, GETDATE()), 0)) AND (Date < DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0))

    Thaks to everyone who try to help me.

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

Sidebar

Related Questions

I think I'm going a little crazy. Right now, I'm working with the following
OS X 10.5.6. My Eclipse 3.4 is going crazy lately. After innocent operations like
This is driving me crazy. I'm not going to take it anymore. I'm going
I have following complex query which I need to use. When I run it,
I have this concrete problem, but if You find my initial design idea crazy
Going back to my previous question on OCSP, does anybody know of reliable OCSP
While going through university and from following the development of SO, I've heard a
Been going over my predecessor's code and see usage of the request scope frequently.
After going through the Appendix A, C# Coding Style Conventions of the great book
What's going on here? printf.sh: #! /bin/sh NAME=George W. Bush printf Hello, %s\n $NAME

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.