Click here to Skip to main content
15,917,859 members
Home / Discussions / Database
   

Database

 
GeneralRe: Adding a new row to a DataTable Pin
Keith Malwitz22-Aug-06 4:53
Keith Malwitz22-Aug-06 4:53 
GeneralRe: Adding a new row to a DataTable Pin
dptalt23-Aug-06 16:52
dptalt23-Aug-06 16:52 
GeneralRe: Adding a new row to a DataTable Pin
Keith Malwitz23-Aug-06 17:33
Keith Malwitz23-Aug-06 17:33 
GeneralRe: Adding a new row to a DataTable Pin
dptalt25-Aug-06 3:11
dptalt25-Aug-06 3:11 
AnswerRe: Adding a new row to a DataTable [modified] Pin
Stephen McGuire22-Aug-06 7:12
Stephen McGuire22-Aug-06 7:12 
GeneralRe: Adding a new row to a DataTable Pin
dptalt22-Aug-06 16:34
dptalt22-Aug-06 16:34 
GeneralRe: Adding a new row to a DataTable Pin
Stephen McGuire23-Aug-06 5:34
Stephen McGuire23-Aug-06 5:34 
GeneralRe: Adding a new row to a DataTable Pin
dptalt23-Aug-06 16:48
dptalt23-Aug-06 16:48 
The datasource is normalized. There is just alot of fields. The data is coming from an Access database. The data is patient info and is maintained using Add, Delete, and Edit functions I have built in. Because there are so many fields the user needs to fill in when a new patient is added the default values feature becomes very useful.

Because there are so many fields, to implement your code above would require alot of typing. What I think I can do is the following: (but I need to work out the exact syntax)

for ColNumb = 0 to MyTable.columns.count MyTable.Columns(ColNumb).DefaultValue=MyDefaultTable.Rows(0).item(ColNumb)
end for

The for next loop will scan through each column in MyTable and assign the field value from MyDefaultTable to the column default value. Both table have the exact field structure. MyTable contains the patient info and MyDefaultTable contains the default values. Think this will work?

QuestionAddnew not working inside a Class Library Pin
Charleboy21-Aug-06 5:53
Charleboy21-Aug-06 5:53 
AnswerRe: Addnew not working inside a Class Library Pin
Colin Angus Mackay21-Aug-06 9:01
Colin Angus Mackay21-Aug-06 9:01 
GeneralRe: Addnew not working inside a Class Library Pin
Charleboy21-Aug-06 14:03
Charleboy21-Aug-06 14:03 
GeneralRe: Addnew not working inside a Class Library Pin
Charleboy22-Aug-06 1:40
Charleboy22-Aug-06 1:40 
AnswerRe: Addnew not working inside a Class Library Pin
Keith Malwitz21-Aug-06 17:51
Keith Malwitz21-Aug-06 17:51 
QuestionAbout Begin and commit transaction in SQL Server 2000 Pin
selvaraj S.Kaliyappan20-Aug-06 23:07
selvaraj S.Kaliyappan20-Aug-06 23:07 
AnswerRe: About Begin and commit transaction in SQL Server 2000 Pin
Colin Angus Mackay20-Aug-06 23:41
Colin Angus Mackay20-Aug-06 23:41 
GeneralRe: About Begin and commit transaction in SQL Server 2000 Pin
selvaraj S.Kaliyappan21-Aug-06 0:53
selvaraj S.Kaliyappan21-Aug-06 0:53 
QuestionTip about Queries ? Pin
faviochilo20-Aug-06 16:07
faviochilo20-Aug-06 16:07 
AnswerRe: Tip about Queries ? Pin
Eric Dahlvang21-Aug-06 7:59
Eric Dahlvang21-Aug-06 7:59 
GeneralRe: Tip about Queries ? Pin
i.j.russell22-Aug-06 2:58
i.j.russell22-Aug-06 2:58 
QuestionOnline articles on Data warehousing Pin
WillemM20-Aug-06 8:44
WillemM20-Aug-06 8:44 
QuestionSqlDateTime overflow Pin
Paddy Boyd20-Aug-06 0:44
Paddy Boyd20-Aug-06 0:44 
Questionstore picture as binary Pin
Mohammed Elkholy19-Aug-06 7:44
Mohammed Elkholy19-Aug-06 7:44 
AnswerRe: store picture as binary [modified] Pin
Colin Angus Mackay19-Aug-06 8:06
Colin Angus Mackay19-Aug-06 8:06 
GeneralRe: store picture as binary Pin
Jerry Hammond19-Aug-06 18:44
Jerry Hammond19-Aug-06 18:44 
QuestionHow to quickly write a datatable into sql server? Pin
steven_wong19-Aug-06 4:21
steven_wong19-Aug-06 4:21 

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.