|
-
Feb 16th, 2004, 03:37 AM
#1
Thread Starter
Junior Member
dataform?
hi...pls correct me if im wrong...cos im still new so i mite b wrong here...dataforms ae use to view and modify data right.
but can i use it to add/delete data into/from the database?..
Arvinder Gill
-
Feb 16th, 2004, 02:14 PM
#2
Frenzied Member
I'm not sure what you mean by dataforms but you answered your own question
Magiaus
If I helped give me some points.
-
Feb 16th, 2004, 05:55 PM
#3
Addicted Member
If you mean the DataForm Wiz that comes with VS.net then yes you can create forms that add/modify/delete data. Click the Options that allow the user to A/M/D data on (i think) the second to last page of the wizzard.
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Feb 17th, 2004, 08:25 AM
#4
Thread Starter
Junior Member
thanks
aight!....got it thx man oh yeah btw can someone help me out with this code.
Code:
myCommand = new SqlCommand("INSERT INTO Patient(Acct ID, Name, Age, Height, Weight, Address, IcNo, HomeNo, HpNo, EName, EPhoneNo, ERelation, Date, Status, Remarks) VALUES('"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]="','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"','"[email protected]+"')",myConnection);
i compile the .cs file and get this error
->
D:\ASGill\D E G R E E\D. Final Year Project (7)\SOFTWARE\C.I.System\CLINICINFORMATIONSYSTEM\AddPatient.cs(534): The left-hand side of an assignment must be a variable, property or indexer <-
what does it mean?...
-
Feb 17th, 2004, 10:18 PM
#5
Frenzied Member
SqlCommand myCommand will fix that error
and i hear \" is cool
have you ever programmed before?
Magiaus
If I helped give me some points.
-
Feb 18th, 2004, 06:11 AM
#6
Thread Starter
Junior Member
Solved it!
well magius..this is (i think) my third time programming, im a law student (over here in Malaysia...we are "FORCED" to go tru computer subjects to keep ourself IT literate..sighh). im currently doin my assigment for DBMS subject which requires me to create an app not so simple yet not so sophisticated which comm. with the Database...u know Inserting and Deleting and so on...but i gotta give this site a heads up!...it has helped it alot...unlike another web site like this...the guys over there always tell me to read the .Net SDK Doc....whoa....reality check guys...dont u think going tru law books a whole lot of reading and now u want me to read the whole SDK stuff..puhleesseee!.. 
anyways sorry if i sounded kinda harsh about computers and IT..but i just had to vent out my frustration...
oh yeah...magius...thx for the answer and for bein so nice
when i become a lawyer which is soon...finishin off next month...ill handle ur legal issues for free...(that is if ur in Malaysia..lol)...i know i know...LAWYERS!!!...seesh!
till my next question...chow and take care
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|