Click here to Skip to main content
15,900,461 members
Home / Discussions / Database
   

Database

 
GeneralRe: First available number Pin
Colin Angus Mackay18-Jun-05 23:46
Colin Angus Mackay18-Jun-05 23:46 
GeneralRe: First available number Pin
gharryh20-Jun-05 7:32
gharryh20-Jun-05 7:32 
GeneralRe: First available number Pin
Colin Angus Mackay20-Jun-05 10:36
Colin Angus Mackay20-Jun-05 10:36 
GeneralWeird problem Pin
Yulianto.17-Jun-05 18:45
Yulianto.17-Jun-05 18:45 
GeneralFinding if date is between two other dates Pin
Luis Alonso Ramos17-Jun-05 14:37
Luis Alonso Ramos17-Jun-05 14:37 
GeneralRe: Finding if date is between two other dates Pin
Richard Deeming20-Jun-05 8:32
mveRichard Deeming20-Jun-05 8:32 
GeneralRe: Finding if date is between two other dates Pin
Luis Alonso Ramos20-Jun-05 18:01
Luis Alonso Ramos20-Jun-05 18:01 
GeneralUrgent help Please - UPDATE error message - Parameter[0]’Airport’has no default value. Pin
jetski441917-Jun-05 10:44
jetski441917-Jun-05 10:44 
I have designed a MS Access 2000 Database which has three tables CUSTOMERS, BOOKINGS & HOLIDAYS to control data entry I have designed three vb.NET Forms. A user is able to SELECT, INSERT, UPDATE and DELETE records on each table.

CUSTOMERS & HOLIDAYS are working fine – no worries. The problem is with the INNER JOIN Table BOOKINGS. The tables are linked by the attribute Coding, the Pk in HOLIDAYS and the Fk in BOOKINGS.

HOLIDAYS table attributes are:
Coding (NUMBER). Pk
Out (DATE)
Return (DATE)
Airport (TEXT)
Country (TEXT)
Destination (TEXT)
Hotel (TEXT)
Rating (NUMBER)
Night (NUMBER)
Price (CURRENCY FIXED)

BOOKINGS table attributes are:
Ref (NUMBER)
CustID (NUMBER)
Coding (NUMBER)
Date (DATE)
Adult (NUMBER)
Child (NUMBER)
Deposit (CURRENCY FIXED)
Balance (CURRENCY)
Cost (CURRENCY)

The Error/Information message, which is just a list, is:

Parameter[0]’Airport’has no default value.

Following in the same syntax is: Country, Destination, Hotel, Night, Out, Price, Rating, and Return

The error message then changes slightly to 'Original_attribute name'.

Parameter[9]'Original_Coding’has no default value.

Then the following are listed as above: Original_Country, Original_Destination, Original_Hotel, Original_Night, Original_Out, Original_Price, Original_Rating, and lastly Original_Return. All the messages return - has no default value???

Note the error message appears on the BOOKINGS UPDATE, although all the attributes mentioned are in the HOLIDAYS table, also the errors are not returned in the order of the attributes in the HOLIDAYS table (see above).

Below is the BOOKINGS UPDATE Statement I have used:

command = "UPDATE BOOKINGS SET Ref = " & txtRef.Text _<br />
& ",CustID = " & txtCustID.Text _<br />
& ", [Coding] = " & txtCoding.Text _<br />
& ", [Date] = '" & txtDate.Text _<br />
& "', Adult = " & txtAdult.Text _<br />
& ", [Child] = " & txtChild.Text _<br />
& ", Deposit = " & txtDeposit.Text _<br />
& ", Balance = " & txtBalance.Text _<br />
& ", Cost = " & txtCost.Text _<br />
& " WHERE Ref = " & txtRef.Text & "" _


It looks to me like an Array problem or the way I have set up the attributes, but what is it and how do I fix it?

I have attached a copy of the actual error message, the Database and the relevant Form for anybody to look at

Any help would be appreciated, thank you in advance.

Regards jetski4419 Confused | :confused:


jetski4419
GeneralRe: Urgent help Please - UPDATE error message - Parameter[0]&#8217;Airport&#8217;has no default value. Pin
Colin Angus Mackay17-Jun-05 12:23
Colin Angus Mackay17-Jun-05 12:23 
GeneralRe: Urgent help Please - UPDATE error message - Parameter[0]&#8217;Airport&#8217;has no default value. Pin
jetski441917-Jun-05 18:37
jetski441917-Jun-05 18:37 
GeneralAdd a timer to webform Pin
NewbieDave17-Jun-05 10:25
NewbieDave17-Jun-05 10:25 
GeneralRe: Add a timer to webform Pin
Colin Angus Mackay17-Jun-05 12:25
Colin Angus Mackay17-Jun-05 12:25 
GeneralMy Article Updated Pin
Ahmed Erarslan17-Jun-05 9:05
Ahmed Erarslan17-Jun-05 9:05 
QuestionCan i include the same columns in unique and non-unique indexes!! Pin
under281116-Jun-05 23:44
under281116-Jun-05 23:44 
AnswerRe: Can i include the same columns in unique and non-unique indexes!! Pin
Colin Angus Mackay17-Jun-05 0:25
Colin Angus Mackay17-Jun-05 0:25 
GeneralRe: Can i include the same columns in unique and non-unique indexes!! Pin
under281117-Jun-05 21:36
under281117-Jun-05 21:36 
GeneralStrong passwords Pin
Brendan Vogt16-Jun-05 21:26
Brendan Vogt16-Jun-05 21:26 
GeneralRe: Strong passwords Pin
Colin Angus Mackay16-Jun-05 22:41
Colin Angus Mackay16-Jun-05 22:41 
GeneralAlter Table with constraint Pin
.NetRams16-Jun-05 19:10
.NetRams16-Jun-05 19:10 
GeneralRe: Alter Table with constraint Pin
Colin Angus Mackay16-Jun-05 22:43
Colin Angus Mackay16-Jun-05 22:43 
Generalon using DataSet Pin
ppp00116-Jun-05 19:05
ppp00116-Jun-05 19:05 
GeneralMy Program uses Microsoft Access Pin
Sasuko16-Jun-05 8:29
Sasuko16-Jun-05 8:29 
GeneralRe: My Program uses Microsoft Access Pin
Hesham Amin18-Jun-05 4:02
Hesham Amin18-Jun-05 4:02 
GeneralInstalling SQL CE on PPC2003 Pin
Rossi4616-Jun-05 3:55
Rossi4616-Jun-05 3:55 
GeneralNow i have my database connected Pin
deeboy16-Jun-05 3:49
deeboy16-Jun-05 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.