צריכה עזרה בבקשה

  • פותח הנושא W3ndy
  • פורסם בתאריך

W3ndy

New member
צריכה עזרה בבקשה

זה אמור לקבל שם שחקן ולהחזיר את הקוד שלו משום מה זה לא עובד ואני לא מוצאת את הבעיה .. (#C)
private int getPlayerID(string myName) { DataSet ds=new DataSet (); OleDbDataAdapter ad=new OleDbDataAdapter ("select PlayerID from TblPlayers Where PlayerName="+myName,aConnection); ad.Fill(ds,"tmp"); int id; id=int.Parse ((ds.Tables ["tmp"].Rows [0]["PlayerID"]).ToString ()); return(id); }​
וזה כותב לי שגיאה על ad.Fill(ds,"tmp") An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll מישהו יודע לעזור בבקשה?
 

W3ndy

New member
תודה../images/Emo39.gif

שכחתי מזה..
(עכשיו יש בעיה אחרת,אני אנסה לבדוק מהי..)
 
למעלה