0
錯誤時指定的轉換無效。這發生在內部加入代碼錯誤:加入3個表
string Query = "SELECT User.First, User.Last, Details.Address1,
Details.Address2, Details.County, Details.Country, Code.Codenum
FROM User INNER JOIN Details on User.Details_DetailsID = Details.DetailsID
INNER JOIN Codes on User.Code_ID = Code.ID
WHERE User.Last ='" + cbUsers.SelectedItem.ToString() + "'";
string snum = myReader.GetInt32(1).ToString();
txtcode.Text = snum;
什麼RDBMS?你的查詢是否使用'User.Code.ID'? – Kaf