Re: Why is this throwing a primary key violation!!?!?
- From: Josh Fraser <jfraser@xxxxxxxxx>
- Date: Mon, 26 Sep 2005 11:24:54 -0400
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
.
- Follow-Ups:
- Re: Why is this throwing a primary key violation!!?!?
- From: Josh Fraser
- Re: Why is this throwing a primary key violation!!?!?
- References:
- Why is this throwing a primary key violation!!?!?
- From: Josh Fraser
- Re: Why is this throwing a primary key violation!!?!?
- From: Guillem
- Why is this throwing a primary key violation!!?!?
- Prev by Date: Re: ADO failing on XP - untangling MDAC and Jet DLLs
- Next by Date: MS ACCES DELPHIE MASTER/SLAVE PROBLEM
- Previous by thread: Re: Why is this throwing a primary key violation!!?!?
- Next by thread: Re: Why is this throwing a primary key violation!!?!?
- Index(es):
Relevant Pages
|
|