Apologies for the Subject Heading!
I am working on a small invoicing app for a local Tyre and Exhaust
Centre. They want to be able to type in the Vehicle Registration
Number and it automatically bring up the customers name and address.
This in itself seems fairly straightforward except that 1 customer can
have many vehicles.
My tables are set up as follows:
TblCustomer (CustID as PK) in one to many with tblVehicle (VehicleID
as PK and CustID as FK)
tblVehicle (VehicleID as PK and CustID as FK) in one to may with
tblInvoice (InvoiceID as PK and VehicleID asFK)
tblInvoice (InvoiceID as PK and VehicleID asFK) in one to many with
tblInvoiceDetai l (InvoiceDetailI D as PK and InvoiceID as FK)
I thought of using a combobox and NotInList but don't know how to get
the data in both tables updated. There are other issues like change
of ownership etc.
Can anyone give any pointers? Thanks in advance for any help. 3 1339
Each customer may have more than 1 vehicle, but each vehicle's ID
should correspond to a CustomerID in tblVehicle. Creating a query
with VehicleID as input value will pull correspnding Customer info
from tblCustomer.
What data needs to be updated, thought you just needed to pull
customer info. With change of ownership do they still need old owner
info linked to the car, can they just delete the old info. da************* *@talk21.com (David Mitchell) wrote in message news:<c3******* *************** ***@posting.goo gle.com>... Apologies for the Subject Heading!
I am working on a small invoicing app for a local Tyre and Exhaust Centre. They want to be able to type in the Vehicle Registration Number and it automatically bring up the customers name and address. This in itself seems fairly straightforward except that 1 customer can have many vehicles.
My tables are set up as follows:
TblCustomer (CustID as PK) in one to many with tblVehicle (VehicleID as PK and CustID as FK) tblVehicle (VehicleID as PK and CustID as FK) in one to may with tblInvoice (InvoiceID as PK and VehicleID asFK) tblInvoice (InvoiceID as PK and VehicleID asFK) in one to many with tblInvoiceDetai l (InvoiceDetailI D as PK and InvoiceID as FK)
I thought of using a combobox and NotInList but don't know how to get the data in both tables updated. There are other issues like change of ownership etc.
Can anyone give any pointers? Thanks in advance for any help. da************* *@talk21.com (David Mitchell) wrote in message news:<c3******* *************** ***@posting.goo gle.com>... Apologies for the Subject Heading!
I am working on a small invoicing app for a local Tyre and Exhaust Centre. They want to be able to type in the Vehicle Registration Number and it automatically bring up the customers name and address. This in itself seems fairly straightforward except that 1 customer can have many vehicles.
My tables are set up as follows:
TblCustomer (CustID as PK) in one to many with tblVehicle (VehicleID as PK and CustID as FK) tblVehicle (VehicleID as PK and CustID as FK) in one to may with tblInvoice (InvoiceID as PK and VehicleID asFK) tblInvoice (InvoiceID as PK and VehicleID asFK) in one to many with tblInvoiceDetai l (InvoiceDetailI D as PK and InvoiceID as FK)
I thought of using a combobox and NotInList but don't know how to get the data in both tables updated. There are other issues like change of ownership etc.
Can anyone give any pointers? Thanks in advance for any help.
This question appears to be backwards. If a vehicle can only belong
to ONE owner, then nothing to it. You can do something like load the
combobox with multiple columns...
SELECT Vehicle.VIN, Owner.LastName
FROM Vehicle INNER JOIN Owner ON Vehicle.OwnerID =Owner.OwnerID
ORDER BY Vehicle.VIN, Owner.LastName;
and then refer to the hidden columns in your combobox...
me.cboVIN.Colum ns(0) <==VIN
me.cboVIN.Colum ns(1) <==Owner.LastNa me
Thanks for both your answers, how would I deal with new vehicle
registrations not on the system (for existing and new customers)? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robin Tucker |
last post by:
Hi there,
I have a database on my test machine that will need to be installed on users
machines. I would like to create the database with the given schema on the
users machine and also with some suitable default values in the tables. I
note that although I can script the schema so that re-creating the structure
of the database is simple on the users machine, I cannot script the contents
of the tables also (automatically). What I would...
|
by: Chris Jackson |
last post by:
I'm a novice Access user and am not sure how to solve the following problem.
Any help with the following would be greatly appreciated!
I have two tables with identical structures, the first holds the data input
for a questionnaire, the second holds the scores from the questionnaire, to
move the scores I've set up 2 action queries, the first appends the record
to the second table, the second action query 'updates' the results by...
|
by: gaosul |
last post by:
I am non-programming scientist and I am using a Program called
Easyarticles from Synaptosoft Inc., which is based the database
program Access. Unfortunately, the owner of this company has
disappeared even though his website still functions. As the program
requires updating, I was wondering whether anyone has any suggestions,
as to what I should do.
The program allows you to search a public database called PubMed. You
can mark abstracts...
|
by: jaYPee |
last post by:
does anyone experienced slowness when updating a dataset using
AcceptChanges?
when calling this code it takes many seconds to update the database
SqlDataAdapter1.Update(DsStudentCourse1)
DsStudentCourse1.AcceptChanges()
i'm also wondering because w/ out AcceptChanges the data is still save
into the database and it is now faster.
|
by: Jeff |
last post by:
For years I have been using VBA extensively for updating data to tables
after processing. By this I mean if I had to do some intensive processing
that resulted in data in temp tables, I would have VBA code that wrote the
results of that away to the db, either creating new records or updating
existing records, whichever was relevant. This may also include deleting
records.
Now I generally do this by opening a recordset on the source data...
| |
by: Geoff |
last post by:
Hi
I'm hoping somebody can help me with the following problem that has occurred
to me.
Suppose I have two tables in an SQL Server database. Let's call these tables
A and B. Assume that A has two fields: a primary key and another holding a
string. In table B there are three fields: a primary key, a foreign key
(which links to the primary key in A) and other field holding a string.
|
by: susan.f.barrett |
last post by:
Hi,
Despite me being able to type the following in to SQL Server and it
updating 1 row:
> updatestockcategory 1093, 839
In my code, it is not updating any rows.
dataSet = new DataSet();
|
by: OldBirdman |
last post by:
I don't really know how to state this problem, as it doesn't make any sense to me.
I have a simple "One-to-Many" query, and was updating the Many side. It quit working. I cannot make any changes to either side, to any field. To simplify the problem, I started from scratch and created 2 simple tables, 3 records in table=tOne, and 4 records in table=tMany. I used the DesignGrid to create queries for testing.
tOne 'The table on the...
|
by: Richard Penfold |
last post by:
Can someone explain why a field on the many side of a one-to-many relationship, with referential integrity enforced, is not automatically updating?
I have 5 tables in my database with the following relationships:
Transactions (1-Many) Transaction Details (1-Many) Deliveries
Order Codes (1-Many) Transaction Details
Order Codes (1-Many) Inventory (1-Many) Deliveries
Order Codes (1-Many) Deliveries
All relationships are set to enforce...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |