I am putting together a small Access 2003 DB to record details of our
motorvehicles. (this is more to teach myself some basics with Access)
The main form is holding data that is common to most vehicles. Eg.
Registration date, expiry, VIN/Chassis, Make, Model, Year.
Additional things that I will record is maintenance/servicing, insurance
etc etc.
The vehicles are a bit varied,: Cars, truck, trailer, motorbikes, caravan.
For these there are different servicing scheduels and I would like to
include them individually.
I have tabs for registration, servicing, insurance, Wheels&tyres etc.
Because of the differences in servicing, I have created 4 subforms for that.
Now I would like to find a way that will load the correct subform when I
load each record in the main form. I had thought that I could make a
col. called ServiceType with a dropdown with options 1, 2, 3 and 4 and
somehow have the correct subform reference this column then load.
Any thoughts on how to go about something like this.
With Thanks
Rob 3 2076
"Rob" <dy@woodyallan. bizwrote in message
news:cB******** *********@news-server.bigpond. net.au...
>I am putting together a small Access 2003 DB to record details of our motorvehicle s. (this is more to teach myself some basics with Access)
The main form is holding data that is common to most vehicles. Eg.
Registration date, expiry, VIN/Chassis, Make, Model, Year.
Additional things that I will record is maintenance/servicing, insurance
etc etc.
The vehicles are a bit varied,: Cars, truck, trailer, motorbikes, caravan.
For these there are different servicing scheduels and I would like to
include them individually.
I have tabs for registration, servicing, insurance, Wheels&tyres etc.
Because of the differences in servicing, I have created 4 subforms for
that.
Now I would like to find a way that will load the correct subform when I
load each record in the main form. I had thought that I could make a col.
called ServiceType with a dropdown with options 1, 2, 3 and 4 and somehow
have the correct subform reference this column then load.
Any thoughts on how to go about something like this.
I would have thought that some code in your form's Current event would do
this, something along the lines of:
If Me.txtVehicleTy pe = "Car" Then
Me.MySubformObj ectName.SourceO bject = "sfrmCar"
ElseIf ...
.... and so on. You'd probably have to set the LinkMasterField s and
LinkChildFields properties too.
Regards,
Keith. www.keithwilby.com
Keith Wilby wrote:
"Rob" <dy@woodyallan. bizwrote in message
news:cB******** *********@news-server.bigpond. net.au...
>I am putting together a small Access 2003 DB to record details of our motorvehicle s. (this is more to teach myself some basics with Access)
The main form is holding data that is common to most vehicles. Eg. Registration date, expiry, VIN/Chassis, Make, Model, Year.
Additional things that I will record is maintenance/servicing, insurance etc etc.
The vehicles are a bit varied,: Cars, truck, trailer, motorbikes, caravan.
For these there are different servicing scheduels and I would like to include them individually.
I have tabs for registration, servicing, insurance, Wheels&tyres etc.
Because of the differences in servicing, I have created 4 subforms for that.
Now I would like to find a way that will load the correct subform when I load each record in the main form. I had thought that I could make a col. called ServiceType with a dropdown with options 1, 2, 3 and 4 and somehow have the correct subform reference this column then load.
Any thoughts on how to go about something like this.
I would have thought that some code in your form's Current event would
do this, something along the lines of:
If Me.txtVehicleTy pe = "Car" Then
Me.MySubformObj ectName.SourceO bject = "sfrmCar"
ElseIf ...
... and so on. You'd probably have to set the LinkMasterField s and
LinkChildFields properties too.
Regards,
Keith. www.keithwilby.com
It might be easier for the op to have a command button called Servicing
Schedule and based on the type of vehicle open a separate form depending
on the type.
"Salad" <oi*@vinegar.co mwrote in message
news:A7******** *************** *******@earthli nk.com...
Keith Wilby wrote:
>"Rob" <dy@woodyallan. bizwrote in message news:cB******* **********@news-server.bigpond. net.au...
>>> Any thoughts on how to go about something like this. I would have thought that some code in your form's Current event would do this, something along the lines of:
If Me.txtVehicleTy pe = "Car" Then Me.MySubformObj ectName.SourceO bject = "sfrmCar" ElseIf ...
... and so on. You'd probably have to set the LinkMasterField s and LinkChildField s properties too.
Regards, Keith. www.keithwilby.com
It might be easier for the op to have a command button called Servicing
Schedule and based on the type of vehicle open a separate form depending
on the type.
I agree it's a bit fiddly to get it working but is quite slick when it is. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andante.in.Blue |
last post by:
Hello, I have just inherited a very undocumented legacy database,
developed in and still running on Access 97. The file is an MDB file,
with no security. It is placed in a shared directory on a dedicated
server, but it is usually accessed only by 1 user; the development
copy I use is not accessed by anyone else).
I am going through the database and fixing logic errors and attempting
to optimize the efficiency of the code. I am finding...
|
by: amywolfie |
last post by:
Whenever a record is modified on frmMain, I want the
Event(AfterUpdate) to ADD a new record to frmRevisionHistory and goto
this form. I also need to Set the FK_ID field of frmRevisionHistory
to the PK_Fee of frmMain.
I know how to do this easily in FileMaker, but not Access.
Can anyone help?
Thanks,
|
by: Diana Gard |
last post by:
Perhaps this is a design flaw, please let me know.
I'm using Access 2000. I have a form with a tab control and 5
subforms within those tabs. The forms match with the tables: Client
main, Intake, Financial, Fees, Payments, Bills, Bill Line Items. The
design works thusly - Client Main relates to Intake. Intake relates to
financial. Financial relates Fees, Payments and Bills. Bills relates
to Bill Line Items.
On the form, I use the...
|
by: Zeeshan Iqbal via AccessMonster.com |
last post by:
hi,
im trying to design a form with two subforms. subforms no.1 (orders) is connected to the main form by customer ID and i dont know how i can connect another subform (order details)to the first subform(orders), so that when i enter a customer id i get the orders related to that customer in subform no.1 and order details related to that order in subform no.2. please message me if some one knows how to do that
...
|
by: Zlatko Matiæ |
last post by:
Hello.
How can I synchronize subforms content with current record in master form,
if both form and subform are based on DAO code ?
I assigned DAO recordset to forms by using QueryDef, on Load event.
Thanks...
| |
by: Dale Walker |
last post by:
I've got a form that currently has a list box used to "find a record
on my form" but the list in it is far too long and consists of fields
of repeating data.
Is there a way of creating a subform to do the same job that is in
datasheet view with a collapsible subdatasheet?
The main form is based on a table consisting of dates, events and
venues (plus a lot of other guff not needed to explain this little
problem). Each record has an ID,...
|
by: Paul |
last post by:
I've searched this site for a few hours without a solution to my
problem. Please help~ In short, the controls on my form have vanished.
I can see nothing but a gray screen and grayed out navigator buttons
on the lower left of the form, with no record count (118 records) to
the right of the navigator buttons as I am used to seeing.
The record source of this form is set to tbl_Employees. This table has
118 records as verified by opening...
|
by: tlyczko |
last post by:
I have a main form with 2 subforms, each subform references different
data in the same table.
How do I make sure each subform only creates NEW records in the
referenced table and do not overwrite or change data in previously
created rows??
Otherwise I have to use two different tables, with similar kinds of
data, for each subform, which may well be the way to go even though
it's not really normalized, to make the data entry easier and...
|
by: sparks |
last post by:
I was using this to swap out a form with subforms on it by just making
a copy and tying each to copy of the same table.
subformV1 tblVisit1
subformV2 tblVisit2
etc
Select Case TabCtl0.Value
Case 0: 'Initial Visit
Child6.SourceObject = "subformV1"
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |