Results 1 to 6 of 6

Thread: dataform?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    29

    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
    Arvinder Gill

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    I'm not sure what you mean by dataforms but you answered your own question
    Magiaus

    If I helped give me some points.

  3. #3
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196
    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

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    29

    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?...
    Arvinder Gill

  5. #5
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    SqlCommand myCommand will fix that error

    and i hear \" is cool

    have you ever programmed before?
    Magiaus

    If I helped give me some points.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    29

    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
    Arvinder Gill

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width