Ali,
I'm not going to do your course work for you.
Having said that here's a few pointers to get you on your
way, I may put too much low level detail in, don't be
offended it's just to make sure I don't skip anything
essential... :
A form can be based on a stored query, a SQL select
statement or a table for it's data. It is said to be
'bound' to that data. If a form has no underlying data
source it is said to be 'unbound'. The same terminology can
be applied to individual controls on the form.
The data source is usually set in the property sheet for
that form. To see the property sheet, open the form in
design view then click the button in the Access button bar
(with an icon of a hand and finger pointing to a sheet of
paper). Alternatively use the menu bar and click
View|Properties. The property sheet should say 'Form' in
it's top caption, if it does not then press Ctrl-R. Click
the 'All' or 'Data' tab on the properties sheet and the
topmost line of the property sheet should be 'Record
Source'. That will contain the source query/table name or
the SQL select statement. If blank then the form is
unbound.
Now to specifics. In the record source for your form you
must have ALL the fields you wish to display on the form.
There are exceptions; calculated controls, controls filled
by code and so on. So you need to make sure [Join Date] is
in the data source to which your form is bound or else
create a new query with all the fields in that you want and
specify that in the form's Record Source.
Either way you can't just point to a field in a control's
'Control Source' property. The control has no way of
knowing which value in a column full of data it should get.
That's where forms come in because in a Continuous form they
effectively repeat the control over and over until all the
records are shown or in Single Form they step through the
records one by one at the users prompt.
Now to completely confuse you, you can use DLookup() to get
a single value in an unbound control thus =DLookup("stuff").
Use Help to get info on DLookup, remember to put stuff in
quotes and use [] around object names that contain spaces.
Good luck... :->>
--
Nick Coe (UK)
www.alphacos.co.uk
---
"Bongo J (e-mail address removed)>" <bongo<nospam> wrote in
message The form I created is from the following.
Table - Bookings
Customer ID
Date of Booking
Start Time
Duration
Facility
Query - Customer Query
Name (This is first and surname joined from the Customer
table)
Query - Cost
Cost per Hour
Total Cost
The Join Date is a field in the Customer Table. I have
tables related as
below
Customer to Booking linked via Customer ID. Booking and
Cost linked via
facility (gym, tennis etc..)
I hope this hasn't made things to muddy to understand.
I am relatively new to access (passed my ECDL if that
gives an idea where I
am)
Thanks
Ali
"Nick Coe (UK)"