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

why does that thing doesn't work??????,

i made this
private sub date_afterupdate()

dim huidigeDB as database
dim rsklanten, rspunten as recordset
set huidigedb = currentdb
set reklanten= huidigeDB.openrecordset('tblleveranciers", dbopentable
set rspunten = HuidigeDB.openrecordset("qrytotaalspel", dbopendynaset

reklanten.movefirst
rsklanten.indes= "primaryKey"
rspunten.movefirst
do until rsklanten.eof()
rsklanten.seek "=", rspunten!Levid
rsklanten.edit

rsklanten!punt4 = rspunten!sumOfaanwezigpunten
rsklanten.update
rspunten.movenext
rsklanten.movenext
loop
rsklanten.close
rspunten.close

de bedoeling is met de qrytotaalspel heb ik van het veld aanwezigpunten het
totaal berekend die sumOfaanwezigpunten zie als naam

dat totaal wil ik plaatsen in tabel tblleveranciers
bij het laten lopen van dit stukje code

stop hij steeds op
run-time error 3061
to few parameters.expected 1.

deze foutmelding zegt mij niets
enfin: ik heb een tabel tblpunten met punten, ik wil daarop met een qeury
een totaal berekenen per speler van het totaal aantal punten en dit totaal
wil ik in een veld zetten van de tabel leveranciers bij de overeenkomstige
speler

ik werk er al een week op.....lukt mij niet.....
is hier iemand met dergelijke routine???

dank u....

Nov 12 '05 #1
1 2696
I didn't get farther than the first line.

private sub DATE_afterupdate

You named your field, [Date]? Do you have, by any chance, another one
named [Number] or [Text] or [Memo]? How about [ASC] or [DESC]?

Fortunately, the VBA editor doesn't allow you to name variables with
keywords like Dim string As Integer or Dim double As Object. It
crapps out and says, "You can't do that!"

Access table designer, however, does allow you to shoot yourself in the
foot. Maybe I'm wrong, but I bet you have a column in your table named
Date and you placed that on a form as a text box, which got the name Date
with a recordsource of Date.

The way I figure it ...
Date_AfterUpdate = Tomorrow at Midnight + 1 second

--

Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com
"Foxie Foxster" <ve************@skynet.be> wrote in message news:3f**********************@reader3.news.skynet. be...
i made this
private sub date_afterupdate()

dim huidigeDB as database
dim rsklanten, rspunten as recordset
set huidigedb = currentdb
set reklanten= huidigeDB.openrecordset('tblleveranciers", dbopentable
set rspunten = HuidigeDB.openrecordset("qrytotaalspel", dbopendynaset

reklanten.movefirst
rsklanten.indes= "primaryKey"
rspunten.movefirst
do until rsklanten.eof()
rsklanten.seek "=", rspunten!Levid
rsklanten.edit

rsklanten!punt4 = rspunten!sumOfaanwezigpunten
rsklanten.update
rspunten.movenext
rsklanten.movenext
loop
rsklanten.close
rspunten.close

de bedoeling is met de qrytotaalspel heb ik van het veld aanwezigpunten het
totaal berekend die sumOfaanwezigpunten zie als naam

dat totaal wil ik plaatsen in tabel tblleveranciers
bij het laten lopen van dit stukje code

stop hij steeds op
run-time error 3061
to few parameters.expected 1.

deze foutmelding zegt mij niets
enfin: ik heb een tabel tblpunten met punten, ik wil daarop met een qeury
een totaal berekenen per speler van het totaal aantal punten en dit totaal
wil ik in een veld zetten van de tabel leveranciers bij de overeenkomstige
speler

ik werk er al een week op.....lukt mij niet.....
is hier iemand met dergelijke routine???

dank u....

Nov 12 '05 #2

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

Similar topics

31
by: lawrence | last post by:
I'm not sure how this is normally done, on a large site, perhaps one running Phorum. Occassionally a thread will have hundreds of entries, perhaps a meg or two worth of data. You won't necessarily...
7
by: Jenbo | last post by:
I know this has come up frequently but I can't seem to put my finger on the precise problem as it applies to me. I have a workgroup with a 2003 box with Sql server on it. Also, on this, I have an...
24
by: David Mathog | last post by:
If this: int i,sum; int *array; for(sum=0, i=0; i<len; i++){ sum += array; } is converted to this (never mind why for the moment):
17
by: Hazz | last post by:
In this sample code of ownerdraw drawmode, why does the '(ComboBox) sender' line of code need to be there in this event handler? Isn't cboFont passed via the managed heap, not the stack, into this...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
14
by: webEater | last post by:
I have a problem, it's not browser specific, and I don't get a solution. I have an (X)HTML document, I show you a part of it: .... <!--<div class="pad">--> <div id="eventImages"><img src=""...
11
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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,...

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.