That worked thanks! Now I would like to be able to get the reservation
id from the active record set on form. I tried the below code but It
dosn't return a total so /i am assuming its not getting id from form?
SiteTotal: DSum("SitePrice","test3","Reservationid = 'Forms!Taking
Reservations!ResrvationsID'")
Any Ideas?
Your original question was answered elsewhere.
Please do not multi-post. If you feel you must post the same question
to more than one newsgroup (and it's seldom necessary), cross-post by
adding each additional newsgroup in the To Newsgroups: box, separated
by a comma.
This way an answer in one newsgroup will be seen in each of the
others. More readers will see the response and learn, and less time
will be spent on duplicate answers.
See Netiquette at
http://www.mvps.org/access
It's a great site to visit anyway.
***
Watch your spelling. You misspelled the field name ReservationsID
and you must concatenate the form value into the DSum Where clause,
otherwise Access is looking for the literal value 'forms![Taking
Reservations]!ResrvationsID'.
SiteTotal: DSum("SitePrice","test3","Reservationid = '" &
Forms![Taking Reservations]!ReservationsID & "'")
If you insist upon using a space within a field or table name, you
must surround that name with brackets. Keep it simple ...
"TakingReservations" is just as easy to read as "Taking Reservations".
Don't use spaces within object names or at least use an underscore
("Taking_Reservations").