VC6.0用ADO连接Access数据库不报错,但是无法通过ado建表

VC6.0用ADO连接Access数据库不报错,但是无法通过ado建表
我在连接时候用了一系列的catch也没有发现错误,但是点击我设置的建表键,就会弹出对话框报错,如下:
debug error!
program:...soft Visual
studio\myproject\datasystem\debug\datasystem.exe

abnormal program termination

(press retry to debug the application)
建表部分代码如下:

void CDatasystemDlg::OnBUTTONCreattable() 

{
// TODO: Add your control notification handler code here
CString strsql;
variant_t RecordsAffected;

try
{
    strsql="drop table leida";
    theApp.m_pConnection->Execute(_bstr_t(strsql),&RecordsAffected,adCmdText);
}
catch (_com_error* e)
{
    MessageBox("Drop table Error");
    return;
}
try
{
    strsql="Create table leida(number text,place text,type text,tech text,country text,freq text,pw text,fr text);";
    theApp.m_pConnection->Execute(_bstr_t(strsql),&RecordsAffected,adCmdText);

}
catch (_com_error* e)
{
    MessageBox("Create table Error");
    return;
}

}

各位大神求助啊!

该回答引用ChatGPT

根据你提供的信息,问题可能出在你的SQL语句上。在创建表的SQL语句中,你使用了多个数据类型的字段,其中包括"文本"(text)类型。在Access中,"文本"应该是"文本型"(text)或"备注"(memo)类型之一,而不是直接使用"文本"。


尝试将你的SQL语句中的数据类型更改为正确的Access数据类型,并且确保每个字段都具有正确的数据类型和格式,然后再次运行你的程序。另外,你可以尝试使用Access的查询设计器来构建和测试你的SQL语句,以确保它们正确无误。