473,513 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Modules

33 New Member
Am looking to create a module or make this part of my ShowDetails module (Code posted in another thread) If it needs reposting let me know.

What I need is to create a module of some code in a module that looks at the Booking_Appoint_Duration in the bookings table & then fills the correct number of appointment slots with the show details data in the view bookings sub form.

E.g

If Booking_Apoint_Duration is 30mins it will fill one appoint slot with booking data
If Booking_Appoint_Duration is 45 -1hr it will fill two appoint slots with booking data
and so on

Any clues or sample code on how I might accomplish this. thanks in advance
Oct 1 '07 #1
2 941
glamster7
33 New Member
just bumping this as i'd like to solve this soon
Oct 2 '07 #2
nico5038
3,080 Recognized Expert Specialist
Am looking to create a module or make this part of my ShowDetails module (Code posted in another thread) If it needs reposting let me know.

What I need is to create a module of some code in a module that looks at the Booking_Appoint_Duration in the bookings table & then fills the correct number of appointment slots with the show details data in the view bookings sub form.

E.g

If Booking_Apoint_Duration is 30mins it will fill one appoint slot with booking data
If Booking_Appoint_Duration is 45 -1hr it will fill two appoint slots with booking data
and so on

Any clues or sample code on how I might accomplish this. thanks in advance
You'll need some recordset processing code like:
[code]
dim rs as DAO.Recordset
dim lngDuration as Long

set rs = currentdb.openrecordset("tblAppointment")

lngDuration = Booking_Appoint_Duration
while lngDuration > 0
rs.addnew
rs!AppointID = Me.AppointID
rs.update
lngDuration = lngDuration - 30
wend

Getting the idea ?

Nic;o)
Oct 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3814
by: Dave | last post by:
Hi Everyone, I am trying to import a package and then loop through the modules inside the package, but I'm running to a problem. Basically: ----- I have a package called...
0
1938
by: Nick Coghlan | last post by:
Anyone playing with the CPython interpreter's new command line switch might have noticed that it only works with top-level modules (i.e. scripts that are directly on sys.path). If the script is...
15
2562
by: Nick Coghlan | last post by:
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that...
7
2059
by: Jorgen Grahn | last post by:
I have a set of tests in different modules: test_foo.py, test_bar.py and so on. All of these use the simplest possible internal layout: a number of classes containing test*() methods, and the good...
4
1741
by: Misto . | last post by:
Hi folks! Short: There is a way to dumplicate a module ? I tried copy.deepcopy(module) but hangs with an error (also with standard modules ).. The only solution that I have by now is...
2
2029
by: James Buchanan | last post by:
Hi group, I'm preparing Python 2.4.2 for the upcoming Minix 3.x release, and I have problems with make. configure runs fine and creates the makefile, but right at the end ends with an error...
7
4281
by: Lauren Quantrell | last post by:
At running the risk of asking how big is too big... Is there a rule of thumb or a best practice that says I may have too many modules? I currently have a Access2K app with about 30 code modules,...
13
2323
by: Robin Haswell | last post by:
Hey people I'm an experience PHP programmer who's been writing python for a couple of weeks now. I'm writing quite a large application which I've decided to break down in to lots of modules...
173
5567
by: Zytan | last post by:
I've read the docs on this, but one thing was left unclear. It seems as though a Module does not have to be fully qualified. Is this the case? I have source that apparently shows this. Are...
3
1810
by: Mohamed Yousef | last post by:
Hello , The problem I'm asking about is how can imported modules be aware of other imported modules so they don't have to re-import them (avoiding importing problems and Consicing code and...
0
7267
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
7391
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
7553
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...
1
7120
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...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.