| | |
About Updating a Record in adodb
![]() |
All the fields in the Deliver table are Text except for the Date Field.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
"Insert Into Deliver (scode, pcode, quantity, unit, amount, pcarrier, pterms, drnumber, date) Values ('" + Combo1.Text + "','" + Combo2.Text + "','" + Text1.Text + "','" + Text2.Text + "','" + Text3.Text + "','" + Text4.Text + "','" + Text5.Text + "','" + Text6.Text + "',#" + Text7.Text + "#)"
Regards
Shaik Akthar
Shaik Akthar
Hey Got the problem.
Actually the field with the name "date" is actually a reserved keyword.
just put square brackets around that field in the query.
her it is
Actually the field with the name "date" is actually a reserved keyword.
just put square brackets around that field in the query.
her it is
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
"Insert Into Deliver (scode, pcode, quantity, unit, amount, pcarrier, pterms, drnumber, [date]) Values ('" + Combo1.Text + "','" + Combo2.Text + "','" + Text1.Text + "','" + Text2.Text + "','" + Text3.Text + "','" + Text4.Text + "','" + Text5.Text + "','" + Text6.Text + "',#" + Text7.Text + "#)"
Regards
Shaik Akthar
Shaik Akthar
![]() |
Similar Threads
- Updating columns in an access database using c# (C#)
- Read Me:Access to any type of DB's possible (Visual Basic 4 / 5 / 6)
- Updating an Access database with a secondary form (VB.NET)
- how to validate text file, loading into listbox (Visual Basic 4 / 5 / 6)
- need help in VB Code (MS Access and FileMaker Pro)
- Addnew problem (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Visual Basic 6 - Hide Folders
- Next Thread: Would like to get back VB ver 6.0 source code
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





