Re: Why is this throwing a primary key violation!!?!?
- From: Josh Fraser <jfraser@xxxxxxxxx>
- Date: Mon, 26 Sep 2005 16:02:47 -0400
Well all I figured it out..it had to do with my query.. man I'm an idiot sometimes. I had an inner join in a query I was trying to update ... doh
]Josh Fraser wrote:
Thanks, I will try that. As for the method name, I thought it was appropriate :P
Guillem wrote:
Hi,
Josh Fraser wrote:
dmShippingAssumptions.SaveAss(qryJobInfo.FieldByName('CustomerID').AsI nteger);
great method name <vbg>
qryJobInfo.FieldByName('CustomerID').Value := dmCustomer.qryGetCustomer.FieldByName('CustomerID').value;
I suspect the problem could lie here. To check it, supposing your CustomerID is an integer, try following:
qryJobInfo.FieldByName('CustomerID').asInteger := dmCustomer.qryGetCustomer.FieldByName('CustomerID').asInteger;
if it's another type then use the corresponding AsXxxx method
.
- References:
- Why is this throwing a primary key violation!!?!?
- From: Josh Fraser
- Re: Why is this throwing a primary key violation!!?!?
- From: Guillem
- Re: Why is this throwing a primary key violation!!?!?
- From: Josh Fraser
- Why is this throwing a primary key violation!!?!?
- Prev by Date: MS ACCES DELPHIE MASTER/SLAVE PROBLEM
- Next by Date: Re: How format float in TDBText using ADO??
- Previous by thread: Re: Why is this throwing a primary key violation!!?!?
- Next by thread: How format float in TDBText using ADO??
- Index(es):
Relevant Pages
|
|