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

prob with ordening in report...

i have two tables
- players (fields playid, name,pts1,pts2,pts3)
- points (field points)

i have to place the sum (total) of points from table points (field points)
into pts3 from players

i made a sum query (two tables into it)

playid name pts3 points
player player player points
group by groupe by groupe by sum
(the query is called qrytotpoints)

and then with a combo box i choose a day of play (from my table dates) and
then in the properties after updating i made this.....


set rspointplay = huidigeDB.opendrecordset("qrytotpoints",dbOpenDyna set)
rspointplay.movefirst
do until rspointsplay.EOF()
repointsplay.edit
rspointsplay!pts3=rspointsplay!sumofpoints
loop
rspointsplayt.close
exit sub
end sub


the debut don't give mistakes and the program don't crash
but.................

in the table players in the field pts3 it stays always ZERO!!!!!!!!!!!!!

question:
why??? (because the query is a sumquery???)
who can give me a way to do it......

reason: i need those three fields to sort all the players in a certain way
thx for your time........
greetings

and yes, i know maybe it's not professional but i'm not and i try to acheive
what i was began in access....


Nov 12 '05 #1
2 1281
Umm... this doesn't make sense. I see no reason why you can't create
a query that uses a DSUM function and then update your table with the
result of the DSUM.... Or even just *display* this in your form...

This worked for me...
=DSum("[Points]","tblScores","[UserName] = '" &
Forms!tblUsers!txtUserName & "'")

If you're doing this in a report, is there a reason you can't just use
a totals query?
Nov 12 '05 #2

"Pieter Linden" <pi********@hotmail.com> schreef in bericht
news:bf**************************@posting.google.c om...
Umm... this doesn't make sense. I see no reason why you can't create
a query that uses a DSUM function and then update your table with the
result of the DSUM.... Or even just *display* this in your form...

This worked for me...
=DSum("[Points]","tblScores","[UserName] = '" &
Forms!tblUsers!txtUserName & "'")

If you're doing this in a report, is there a reason you can't just use
a totals query?

that doesn't work
gives syntax error

......tbl....ORDER by DSUM("[points]") DESC, ......
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Robot Tree | last post by:
Anyone know how to do this? I have 25 *.gif files, all of the same dimensions. I want to display one at a time in the top middle of a dynamic web page, with 25 links below the display that...
0
by: Phil | last post by:
Hi all. I am working in Access 2000. I want to report on a table of addresses, and print one address where more than three occur, with the count of, against the address on the report. any...
14
by: Matt Suther | last post by:
I just bought The C Programming Language, by the guy who made C and so...I have 2 different compilers, free ones, and I don't know if I typed the code in wrong or if it's a problem with my...
0
by: Raghavendra | last post by:
hi, we r using forms authetication. problem :- i am using the below code to generate excel report but since we r using forms authetication.. after generating excel report the browser directs...
2
by: Gary Blakely | last post by:
In my aspx program I'm writing a PDF report to the client browser as follows... Response.BinaryWrite(myBuffer) Response.End() This works successfully about 99% of the time but some I.E....
2
by: GaryDean | last post by:
( First, I'm using .net 1.1 and, yes, I posted this problem on the Adobe Forums but that won't do any good because they have very poor support) In the code pasted below, MyReport is a Crystal...
0
Savage
by: Savage | last post by:
I'm making for fun a simple program which format a input file.Input file sustain of person name,lastname and date of birth.Output file si supposed to be forammted as following: NAME ...
2
by: mnacw | last post by:
Can anybody help me to resolve this prob. i have installed Visual Studio 2005 Professional edition. I am working in VB.Net. When I tried to connect to database it is connected but when i make some...
8
by: =?Utf-8?B?Sm9obiBmcm9tIFN0b2NrdG9uLCBDQQ==?= | last post by:
I updated my Windows XP home from SP2 to SP3. From then on, whenever I put my laptop into standby or hibernate mode, I get disconnected to the internet and it can't renew its IP unless you restart...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...

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.