Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~6K People Reached
Favorite Tags

24 Posted Topics

Member Avatar for king03
Member Avatar for kapojian

hi in my program the users need to update his record every week. every week there will be a different food that will be given to him. i have a table where his info are saved, column week determine what week it is?(1 month = 4 weeks) i want to …

Member Avatar for lolafuertes
0
174
Member Avatar for kapojian

hi. i have a main form and log-in form. when i try to log-in and entered a wrong user or password it gives me error and i dont understand why the error is in the main form??? heres my code in my login form.. [CODE] private void Lgbtn_Click(object sender, EventArgs …

Member Avatar for kapojian
0
139
Member Avatar for adem87
Member Avatar for kapojian

hi, how do you add days automatically to current date? lets say i created an account in my program, and get its current date, augest 3 2011 for example, how would i add days automatically every after day, still keeps the date when i created my account. my goal is …

Member Avatar for bhagawatshinde
0
782
Member Avatar for kapojian

hi i would like to select in my database the latest date he updated his record. in my database theres a column date_updates. date_update Username(foreignkey) 08/10/2011 aaa 08/17/2011 aaa 08/24/2011 aaa now i want to select his last date update.. select date_update will select them all, i want to select …

Member Avatar for Sravanthi Ch
0
123
Member Avatar for adem87

place [CODE]baglan.Open();[/CODE] before [CODE]oku = veri.ExecuteReader();[/CODE]

Member Avatar for cudahead
0
135
Member Avatar for kapojian

hi, im not that good in sql and i dont know how to make a stored procedure. in my windows form, i need to archive two table from my database but only those inactive user will be archived. if user is not updating his profile for a month.... e.g TABLE1 …

Member Avatar for kvprajapati
0
103
Member Avatar for adem87

heres a sample. if you like to search in your databse i prefer to use "LIKE"... eg select * from tablenme where column_name LIKE "variable".. [CODE] CN = new SqlConnection(concString); String qry = "update BookMaster set Cat_code=" + int.Parse(Cat) + " Title='" + title + "' Publisher='" + Pub + …

Member Avatar for adem87
0
106
Member Avatar for coroll

[CODE]CN.Open();[/CODE] put it before int[CODE] executed = com.ExecuteNonQuery();[/CODE] your error is no connection so the problem is in connection string. i use update like this [CODE]string sql=("UPDATE Users SET firstname="+"'"+textBox9.Text+"'"+","+" lastname="+"'"+textBox10.Text+"'"+","+" Username="+"'"+textBox1.Text+"'"+","+"[Password]="+"'"+textBox2.Text+"'", conn)[/CODE] correct me if im wrong hehe

Member Avatar for coroll
0
162
Member Avatar for shridharmaster
Member Avatar for Momerath
0
345
Member Avatar for kapojian

in my c# program, you will have to create accounts for you to log-in. now, when i create an account, (username, password, age, gender, date...) the info will be inserted in a table named "users". ones a users has a created an account he needs to update his record everyday, …

Member Avatar for Fenrir()
0
106
Member Avatar for potsha

how bout a monitoring system?? that gives the user a guide on what to eat based on his bmi?

Member Avatar for kapojian
0
81
Member Avatar for kapojian

hi, i would like to ask where should i put my access database before publishing my application?? its inside my "windowsformapplication1" folder in project folder.. but when i publish it, there's no database in it. lol, already created an application yer doesnt know how to publish w database. :D thanks...

Member Avatar for kapojian
0
85
Member Avatar for kapojian

my program doesnt seem following my if statement condition, i have || and && in my statement... is there a better way to do this??thanks this just an example of my code... [CODE]else if (age>19&&bmires2>=18.50||bmires2<=25.00) {messagebox.show("normal weight"); } else if (age<19&&bmires2<18.50||bmires2>13.25) { messagebox.show("underweight"); }[/CODE]

Member Avatar for kapojian
0
327
Member Avatar for coroll

i had the same error before but i forgot what i did... i guess its about the cn.open(); put it in after string sqlquery=select idnum. hehe

Member Avatar for kapojian
0
157
Member Avatar for kapojian

how can you remove the excess width in may datagridview??? after that long blank space theres another field.. as shown in the image.. my code goes something like this [CODE]//create a command builder OleDbCommandBuilder cBuilder = new OleDbCommandBuilder(dAdapter); //create a DataTable to hold the query results DataTable dTable = new …

Member Avatar for kapojian
0
211
Member Avatar for arsalanghouri

i think this is what you need.... :p open your own oledb connection then in the button edit the code below.. :v [CODE]cmd = new OleDbCommand("insert into Users(firstname,lastname,username,[password],weight,height,age,BMI,gender,illness1)" + "values(" + "'" + textBox6.Text + "'" + "," + "'" + textBox7.Text + "'" + "," + "'" + textBox1.Text …

Member Avatar for kapojian
0
206
Member Avatar for kapojian

in my access database the column "foods" has multiline text..but when i view it in datagridview in my c# form it only has single line text,,, the width and height in datagridview is not the same as in my access database... my access database looks like this [U]|primary key|[/U][U]|foods|[/U][U]|servings|[/U] 00000001 …

Member Avatar for kapojian
0
151
Member Avatar for kapojian

ist possible to have another if statement after the first if statement.. this is just an example [ICODE] private void button_click(object sender, eventargs e) try { if(age>5||age<=10) {massagebox.show("young");} else if(age>10||age<20); messagebox.show("example"); } catch(exception) messagebox.show("error"); //can i have another if statement here??? if(something ==eg) {messagebox.show("thanks"); } [/ICODE]

Member Avatar for Momerath
0
108
Member Avatar for kapojian

i have a main form that has a button, when click a subform1 will open. in subform1 theres another button that will open subform2 in main form..i have this code in subform1. [CODE] { profilefrm prf = null; foreach (Form existingForm in this.MdiChildren) { prf = existingForm as profilefrm; if …

Member Avatar for symeramon
0
550
Member Avatar for eoop.org

i think this what you need? this not mySQL so revise it. lolz... well atleast there's a reference.. :v [CODE]private void Lgbtn_Click(object sender, EventArgs e) { OleDbConnection conn = new OleDbConnection(@"provider=microsoft.jet.oledb.4.0;data source=C:\Documents and Settings\Anakz\My Documents\PDG.mdb"); OleDbCommand cmd = new OleDbCommand("SELECT Username,Password,age FROM Users", conn); OleDbDataReader reader; bool permit = false; …

Member Avatar for skatamatic
0
170
Member Avatar for kapojian

i have three forms, mainform(which is the "MAIN") log-in and home form. when accessing buttons in the main form to enable it i did this. its property is set to public. [CODE](this.Owner as Main).homebtn.Enabled = true;[/CODE] after logging in homebtn is anabled, when clicked, the home form will show and …

Member Avatar for CsharpChico
0
157
Member Avatar for kapojian

help please.. how can i store the selected value from my database to a variable in my c# form... (eg. variable=select idnum from tblename)<--- i know i cant do that.. how can i pass its value?? im talking about a specific value from the database. lets say i log in …

Member Avatar for kapojian
0
1K

The End.