I don't see any remaining doubts! What doubts do you have? Sam
On Mon, Nov 21, 2011 at 10:57 AM, Shankar Bheema <shankar.n...@gmail.com>wrote: > thank you so much sir, if possible pls clarify my remaining doubts. > > > On Sun, Nov 20, 2011 at 1:06 AM, Sam Mathai Chacko <samde...@gmail.com>wrote: > >> You have to create a recordset by using the OpenRecordSet command in the >> CurrentDB >> >> Use >> >> Private Sub cmdsave_Click() >> >> Dim rst As Recordset >> >> Set rst = CurrentDb.OpenRecordset("SELECT * FROM t_main") >> >> rst.AddNew 'Add the Payment record >> rst.Fields(0).Value = txtfileno 'Payment ID >> rst.Fields(1).Value = txtempname 'W.O. # >> >> End Sub >> >> Also, your first column has a data type of Number. However, the txtfileno >> variable contains a string / text value. That will have to be corrected >> also. I have fixed this in the attached database. >> >> Regards, >> >> Sam Mathai Chacko >> >> >> On Sat, Nov 19, 2011 at 4:32 PM, Shankar Bheema >> <shankar.n...@gmail.com>wrote: >> >>> Dear Experts >>> >>> I created a form with MSACcess 2003, I placed a command button on the >>> form for saving the data into the table. But it is throwing an error. Pls >>> check and suggest me solution. >>> >>> -- >>> FORUM RULES (934+ members already BANNED for violation) >>> >>> 1) Use concise, accurate thread titles. Poor thread titles, like Please >>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >>> will not get quick attention or may not be answered. >>> >>> 2) Don't post a question in the thread of another member. >>> >>> 3) Don't post questions regarding breaking or bypassing any security >>> measure. >>> >>> 4) Acknowledge the responses you receive, good or bad. >>> >>> 5) Cross-promotion of, or links to, forums competitive to this forum in >>> signatures are prohibited. >>> >>> NOTE : Don't ever post personal or confidential data in a workbook. >>> Forum owners and members are not responsible for any loss. >>> >>> >>> ------------------------------------------------------------------------------------------------------ >>> To post to this group, send email to excel-macros@googlegroups.com >>> >> >> >> >> -- >> Sam Mathai Chacko >> >> -- >> FORUM RULES (934+ members already BANNED for violation) >> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >> will not get quick attention or may not be answered. >> >> 2) Don't post a question in the thread of another member. >> >> 3) Don't post questions regarding breaking or bypassing any security >> measure. >> >> 4) Acknowledge the responses you receive, good or bad. >> >> 5) Cross-promotion of, or links to, forums competitive to this forum in >> signatures are prohibited. >> >> NOTE : Don't ever post personal or confidential data in a workbook. Forum >> owners and members are not responsible for any loss. >> >> >> ------------------------------------------------------------------------------------------------------ >> To post to this group, send email to excel-macros@googlegroups.com >> > > -- > FORUM RULES (934+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Sam Mathai Chacko -- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com