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

How to build a form for a time shedule

I need to build a form used by each employee to enter the visits for
each day
I have built a table consisting of the following rows

CallId
Client
CallDate
CallTime
Subject

I imagine the form to look like this:
===================
Monday 01.01.2005

Time Client Subject

9.000 ABC giving an offer
10.00 ABD good will
==================================
etc etc

I have difficulties in building the form, since i want the form to
display each separate day.
But i cannot do it. This is because the date is not an Autonumber,i.e.
it is not unique
and i cannot open it for a new day, or find a previous day.I think i
have something
basicaly wrong with my conception .For example, how shall i open the
form for a new day, and how can

i find a previous day? i will be grateful for any help. Is there by
chance any template i could use ?
Nov 13 '05 #1
2 1618
I'd use 2 tables
tblCall
callId (pk) (autonumber)
callDate

tblCallDetail
callId (pk) (fk)
visitNo (pk) (autonumber)
callTime
client
subject

then I'd build a tabular form for callDetail
then I'd build a columnar form for call, with a subform of callDetail

pr******@hotmail.com (Primerov) wrote in message news:<4a**************************@posting.google. com>...
I need to build a form used by each employee to enter the visits for
each day
I have built a table consisting of the following rows

CallId
Client
CallDate
CallTime
Subject

I imagine the form to look like this:
===================
Monday 01.01.2005

Time Client Subject

9.000 ABC giving an offer
10.00 ABD good will
==================================
etc etc

I have difficulties in building the form, since i want the form to
display each separate day.
But i cannot do it. This is because the date is not an Autonumber,i.e.
it is not unique
and i cannot open it for a new day, or find a previous day.I think i
have something
basicaly wrong with my conception .For example, how shall i open the
form for a new day, and how can

i find a previous day? i will be grateful for any help. Is there by
chance any template i could use ?

Nov 13 '05 #2
pr******@hotmail.com (Primerov) wrote in message news:<4a**************************@posting.google. com>...
I need to build a form used by each employee to enter the visits for
each day
I have built a table consisting of the following rows

CallId
Client
CallDate
CallTime
Subject

I imagine the form to look like this:
===================
Monday 01.01.2005

Time Client Subject

9.000 ABC giving an offer
10.00 ABD good will
==================================
etc etc


CAKE. You just have to do one thing... Create a table of dates.
Something like

CREATE TABLE tblCalendar(
CalendarDate DATE PRIMARY KEY);

And then you could populate it with some code...

Public Sub FillCalendar(byval dtStart As Date, byval dtFinish As Date)
dim db as dao.database
dim rs as dao.recordset
dim dtThis as date

set db=dbengine(0)(0)
set rs = db.OpenRecordset("tblCalendar",dbOpenTable)

'be sure to check if dtStart<=dtFinish...
for dtThis = dtStart to dtFinish
rs.AddNew
rs.Fields("CalendarDate")=dtThis
rs.Update
next dtThis

rs.close
set rs=nothing
set db=nothing

End Sub

Oh, and add some nice error trapping...

Okay, now that we have a populated table... Create a Main/Subform.
Main's source is tblCalendar, and the sub's source is
"tblAppointments". Join the two tables. (Put Date and Time in
separate fields, or you won't be able to do the join!) Then just sort
the subform on the time field, and you're done.
Nov 13 '05 #3

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

Similar topics

4
by: Wugi | last post by:
I'm trying to find an equivalent of key-event trapping which is easy in QBasic. Several of my programs build up a geometric figure with two parameter line families, eg with two nested for..next...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
2
by: Deborah V. Gardner | last post by:
I am using Access 97 and have had a problem joining a main form and a subform. I have a main form and a subform. The data source on the main form is a SELECT statement referring to three tables....
2
by: Darko Bazulj | last post by:
Hi, Is it possible to start some code at specifed time(like scheduled task)? How to achive that? I can't use windows service or windows shedule task. I don't have necessary rights. I would...
4
by: Steve Amey | last post by:
Hi all I have a Form that is inherited from a main form. On the child form I am putting 2 panels directly on the form, not in any other controls. If I build the project, 1 of the panels decides...
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
5
by: Rob R. Ainscough | last post by:
I have a moderately sized web application (30 pages, and 20 DLLs) that takes 10-20 minutes to "Build Solution" after I do a "Clean Solution" -- this is ONLY apparent after a "Clean Solution" I...
10
by: VirtualLilac | last post by:
Hi, Am trying to build a database for non-profit organisation, its a volunteer job and nobody around to guide me. From my learning I could able to build few reports and forms but am feeling stuck...
1
by: durai4you | last post by:
Hi IT's, Directly i'm coming to the point. I have Schedule time, Interval and current time. What i want to do is I have to start the process using schedule time and intrevel, For example The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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.