Re: Why is this throwing a primary key violation!!?!?



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

--
Best regards :)

Guillem Vicens
Dep. Informática Green Service S.A.
www.clubgreenoasis.com
--
in order to contact me remove the -nospam
.



Relevant Pages

  • Re: Amanda Knoxs American law "consultant"
    ... Garrettson spent some time in jail for the Manson murders. ... time that he was a suspect. ... I think that the hard-core interrogation tactics Charlie mentions ... I also NEVER asked him to lie for me. ...
    (alt.true-crime)
  • Re: Joe Adamov passed away
    ... > I suspect that the problem here may lie in the standard practice of ... > anticipating that Mr. Adamov would be passing sooner than he did. ...
    (rec.radio.shortwave)
  • Re: Nancy "Howdy Doodie" Pelosi soils herself during press conference
    ... I don't recall her doing that in previous pressers. ... If you've ever seen the drama "Lie To Me" you know she was prime ... suspect #1, considering how her body language was completely altered ...
    (alt.politics)
  • Re: Nancy "Howdy Doodie" Pelosi soils herself during press conference
    ... I don't recall her doing that in previous pressers. ... If you've ever seen the drama "Lie To Me" you know she was prime ... suspect #1, considering how her body language was completely altered ...
    (alt.politics)
  • Re: For Sale - Bugei "Lion Dog" Tanto
    ... nature to deceive, but I can suspect. ... Women are expected to lie; ... I have no 'gender problem'- I know exactly with whom I'm dealing, ...
    (rec.knives)