Click here to Skip to main content
15,909,051 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to Fast search data in XML ? Pin
nimolZero22-Aug-07 15:40
nimolZero22-Aug-07 15:40 
AnswerRe: How to Fast search data in XML ? Pin
Christian Graus22-Aug-07 15:49
protectorChristian Graus22-Aug-07 15:49 
QuestionErr when add record into database Pin
Mekong River22-Aug-07 15:13
Mekong River22-Aug-07 15:13 
AnswerRe: Err when add record into database Pin
Christian Graus22-Aug-07 16:41
protectorChristian Graus22-Aug-07 16:41 
GeneralRe: Err when add record into database Pin
Mekong River22-Aug-07 16:47
Mekong River22-Aug-07 16:47 
QuestionRe: Err when add record into database Pin
Vimalsoft(Pty) Ltd22-Aug-07 23:28
professionalVimalsoft(Pty) Ltd22-Aug-07 23:28 
AnswerRe: Err when add record into database Pin
Mekong River22-Aug-07 23:57
Mekong River22-Aug-07 23:57 
GeneralRe: Err when add record into database Pin
Vimalsoft(Pty) Ltd23-Aug-07 0:15
professionalVimalsoft(Pty) Ltd23-Aug-07 0:15 
I went back to your main post.
1st your table is not structured well.
2nd you have to know the Purpose of a Primary key.
3th you have a Column ProgID and you made a Primary key.and had ProgBudYear and made it an Identity Column(AutoNumber). ProgID is a column that serves no Purpose according to view, because there might be dublicate as you suspected. Now i suggest you make ProgBudYear a Primarykey, and keep it as an autoNumber and remove ProgID if you only Put it in your table for the purpose of Primary key.
Then your table will look like this
if ProgBudYear is an identity table then you will not have trouble with duplicates and will make ProgBudYear a Primary key
- ProgBudYear (AutoNumber)
- Year (Number)
- GovContrib (Currentcy)
- OrgContrib (Current)


and when you insert your query should be something like this
insert into mytable 
values(1981,14000,20000)


Exclude Identity column.

Hope this help

Thanks



Vuyiswa Maseko

GeneralRe: Err when add record into database Pin
Dave Kreskowiak23-Aug-07 3:14
mveDave Kreskowiak23-Aug-07 3:14 
QuestionDelegates [modified] Pin
ASPnoob22-Aug-07 13:02
ASPnoob22-Aug-07 13:02 
AnswerRe: Delegates Pin
Christian Graus22-Aug-07 15:52
protectorChristian Graus22-Aug-07 15:52 
QuestionHighlighting text in a webbrowser control Pin
Ahmad Zaidi22-Aug-07 11:09
Ahmad Zaidi22-Aug-07 11:09 
AnswerRe: Highlighting text in a webbrowser control Pin
nlarson1122-Aug-07 11:28
nlarson1122-Aug-07 11:28 
QuestionMost Efficient Data Control Pin
errorfunktion22-Aug-07 8:59
errorfunktion22-Aug-07 8:59 
AnswerRe: Most Efficient Data Control Pin
Luc Pattyn22-Aug-07 14:10
sitebuilderLuc Pattyn22-Aug-07 14:10 
GeneralRe: Most Efficient Data Control Pin
errorfunktion22-Aug-07 18:13
errorfunktion22-Aug-07 18:13 
GeneralRe: Most Efficient Data Control Pin
Dave Kreskowiak23-Aug-07 3:10
mveDave Kreskowiak23-Aug-07 3:10 
QuestionDataGrid Record Loop. Pin
Smokeywade22-Aug-07 8:27
Smokeywade22-Aug-07 8:27 
AnswerRe: DataGrid Record Loop. Pin
jchigg200022-Aug-07 9:00
jchigg200022-Aug-07 9:00 
GeneralRe: DataGrid Record Loop. Pin
Smokeywade22-Aug-07 9:49
Smokeywade22-Aug-07 9:49 
GeneralRe: DataGrid Record Loop. Pin
jchigg200022-Aug-07 10:14
jchigg200022-Aug-07 10:14 
GeneralRe: DataGrid Record Loop. Pin
Smokeywade22-Aug-07 10:38
Smokeywade22-Aug-07 10:38 
GeneralRe: DataGrid Record Loop. Pin
Johan Hakkesteegt23-Aug-07 2:06
Johan Hakkesteegt23-Aug-07 2:06 
GeneralRe: DataGrid Record Loop. Pin
Smokeywade23-Aug-07 4:10
Smokeywade23-Aug-07 4:10 
QuestionRe: DataGrid Record Loop. Pin
Smokeywade23-Aug-07 10:00
Smokeywade23-Aug-07 10:00 

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.