VFP ODBCドライバ(ドライバはバージョン6.x)を使用してMS Access 2007を使用して書き込みしようとしているfoxproデータベースがありますAccess 2007でFoxproデータベースへの書き込みに制限がありますか?
これには制限がありますか?何を試しても、私たちはfoxproのデータテーブルに書き込むことができません。
We are using ODBC It is the MS VFP driver The Foxpro and access DBs are on the same system The ODBC is setup for Free Table Directory Permissions on the foxpro directory and files has been checked.
我々はいかなる特定のエラーを取得されていませんが、我々はFPテーブル上のAccessで新しいエントリを作成するためのオプションを持っていないと我々はFPテーブルへのアクセスからデータを挿入するクエリを実行することはできません。
すべてのヘルプはここにコードがあります
素晴らしいことだ:
Dim dbs As DAO.Database
Dim rsSQL As DAO.Recordset
Dim strSQL As String
Dim strSQL2 As String
Dim strConnString As String
Set oConn = CreateObject("ADODB.Connection")
strConnString = "Data Source= C:\Program Files\Best Software\Abra Suite\Programs\Data\hrtables.dbf;User ID = ;Password = ; Provider=VFPOLEDB"
oConn.Open strConnString
Set dbs = CurrentDb
strSQL = "Select * from qryAppendClient"
Set rsSQL = dbs.OpenRecordset(strSQL, dbOpenSnapshot)
Do While Not rsSQL.EOF
strSQL2 = "Insert into hrtables (c1, c2, c3, c4, Code, Company, Desc, GLComp, n1, n2, n3, Rule, "
strSQL2 = strSQL2 & "Table, tccomp, ud1, ud2, ud3) values (""" & rsSQL!c1 & """, """ & rsSQL!c2 & """, """ & rsSQL!c3
strSQL2 = strSQL2 & """, """ & rsSQL!c3 & """, """ & rsSQL!Code & """, """ & rsSQL!Company & """, """ & rsSQL!Desc & """, """
strSQL2 = strSQL2 & rsSQL!GLComp & """, " & rsSQL!n1 & ", " & rsSQL!n2 & ", " & rsSQL!n3 & ", """
strSQL2 = strSQL2 & rsSQL!Rule & """, """ & rsSQL!Table & """, """ & rsSQL!tccomp & """, """ & rsSQL!ud1 & """, """
strSQL2 = strSQL2 & rsSQL!ud2 & """, """ & rsSQL!ud3 & """)"
oConn.Execute strSQL2
Loop
oConn.Close
rsSQL.Close
なぜこの質問をCWにするのですか? –
どのようなエラーが表示されますか? Foxpro - 32ビットプログラムであれば、1つのファイルに対して2GBに制限されています。 – jac
なぜ私はそれをCWにしたのですか?誰かがそれを編集して、良いタグを追加しました。私がCWを必要に応じて使用することを確かめる必要があると思います。 – Jason