M
Mohsin
Good Morning to All (Christmas Greetings),
indeed many thanks for your prompt response apropos my question.
as every body knows that visual basic is Application Bulider.
suppose, i am going to make a simple programme for two Numbers
Calculation. i designed a Form in visual basic to enter the data .
1st text box is Enter the 1st number. ( textbox name is T1)
2nd text box is Enter the 2nd number.( textbox name is T2)
3rd text box is total.( textbox name is T3)
made two buttons which are SAVE & EXIT (name is save and EXIT)
if i will enter data in textbox T1 & T2 and click on SAVE button then
it will make calculation of two numbers whatever user will enter in
aforesaid textbox and should be save in Access table.
To save the data in Access table i have to make a table in access ,
isn't it.
i made one table in access with the name of calculation and data field
is First_Number, Second_Number and Total and saved this access file in
my document Folder.
first of all to make a link between access table and visual basic form
what will i do,
i think i have to make link through data control and ODBC. is it right.
but when i make a link thourgh this. it shows errors hence please let
me know the full procedure how will i make link access table with VB
form both way and what will i write on SAVE button to save this data in
Access Table.
on Private Sub cmdSave_Click()
T3.text=val(T1.text)+val(T2.text)--to Calculate the data
ConnectionObject.Recordset.Update - to save the data
End Sub
i do hope that my query is obvios now and every body can realize that
what am i facing problem to this data in access Table.
your cooperation on this regard will be highly appreciated.
Regards
Mohsin
indeed many thanks for your prompt response apropos my question.
as every body knows that visual basic is Application Bulider.
suppose, i am going to make a simple programme for two Numbers
Calculation. i designed a Form in visual basic to enter the data .
1st text box is Enter the 1st number. ( textbox name is T1)
2nd text box is Enter the 2nd number.( textbox name is T2)
3rd text box is total.( textbox name is T3)
made two buttons which are SAVE & EXIT (name is save and EXIT)
if i will enter data in textbox T1 & T2 and click on SAVE button then
it will make calculation of two numbers whatever user will enter in
aforesaid textbox and should be save in Access table.
To save the data in Access table i have to make a table in access ,
isn't it.
i made one table in access with the name of calculation and data field
is First_Number, Second_Number and Total and saved this access file in
my document Folder.
first of all to make a link between access table and visual basic form
what will i do,
i think i have to make link through data control and ODBC. is it right.
but when i make a link thourgh this. it shows errors hence please let
me know the full procedure how will i make link access table with VB
form both way and what will i write on SAVE button to save this data in
Access Table.
on Private Sub cmdSave_Click()
T3.text=val(T1.text)+val(T2.text)--to Calculate the data
ConnectionObject.Recordset.Update - to save the data
End Sub
i do hope that my query is obvios now and every body can realize that
what am i facing problem to this data in access Table.
your cooperation on this regard will be highly appreciated.
Regards
Mohsin