my record got OrderFormNo and CashBillNo.(one to one insert)
if 1st record OrderFormNo is 123 and CashBillNo is ABC, if 2nd record also same OrderFormNo, the CashBill must be same.
As a result, I want detect if got same OrderFormNo in database but different CashBillNo, will not insert to database.
lianpiau
0
Junior Poster
Recommended Answers
Jump to PostYour post is a little confusing. Let me paraphrase to see if I understand what you're after.
1. You have a table that includes two columns: OrderFormNo and CashBillNo.
2. You have a row in the table with values OrderFormNo=123 and CashBillNo='ABC'.
3. You want to make sure that every …
Jump to PostOk, got it.
But i also have a question.
Say you have 3 records like this
OrderFormNo=345 and CashBillNo='ABC'
OrderFormNo=123 and CashBillNo='ABC'
OrderFormNo=234 and CashBillNo='ABC'Which one to delete.
All 8 Replies
BitBlt
452
Practically a Master Poster
Featured Poster
debasisdas
commented:
agree
+13
lianpiau
0
Junior Poster
debasisdas
580
Posting Genius
Featured Poster
lianpiau
0
Junior Poster
debasisdas
580
Posting Genius
Featured Poster
BitBlt
452
Practically a Master Poster
Featured Poster
lianpiau
0
Junior Poster
debasisdas
580
Posting Genius
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.