Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > syntax error in field definition...


Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2008, 11:22 PM
anuj anuj is offline
Freshman
 
Join Date: May 2007
Posts: 42
Default syntax error in field definition...


hi,

this is the code

I tried to create table from vb at runtime, im MS access

Code:
stat = "CREATE TABLE details ( CPFA/CNo text(10), Name text(10),  Designation text(10) ,  Basic currency,  Dearness_Pay currency,  Dearness_Allowance currency,  HRA currency,  Special_Allowance currency,  Other(E) currency,  Total currency,  Income_Tax currency,  Professional_Tax currency,  CPF/EPF currency,  BIS/LWP currency,  Other(D) currency,  Total_Deduction currency,  Net_Payable currency);"
    stat1 = "CREATE TABLE temp ( CPFA/CNo text(10),  Name text(10),  Designation text(10),  Basic currency,  Dearness_Pay currency,  Dearness_Allowance currency,  HRA currency,  Special_Allowance currency,  Other(E) currency,  Total currency,  Income_Tax currency,  Professional_Tax currency,  CPF/EPF currency,  BIS/LWP currency,  Other(D) currency,  Total_Deduction currency,  Net_Payable currency);"
     conn.Execute stat
     conn.Execute stat1


EDIT : I got my mistake ..i used parentheses and "/" in some field names

Last edited by anuj; 04-04-2008 at 11:45 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->