0

I have a button inside a from, i included the following code for the event onclick

Dim strSQL As String

strSQL = "INSERT INTO BusObjectiveUpdate (BusinessObjectDesc,BusinessReqID,BusObjectiveDate,PersonID) VALUES ('" & Me!BusinessObjectDesc & "'," & Me!BusinessReqID & "," & Me!BusObjectiveDate & "," & Me!PersonID & ");"
DoCmd.RunSQL strSQL

Me.Requery

whenever i click on the button i check the table BusObjectiveUpdate and i found no data there ?! Any help ?!!?

4

1 に答える 1

0

データベースの場所を信頼できる場所に設定しましたか? 2007 では、コードを機能させるためにこれを行う必要があります。

于 2012-06-04T10:00:39.247 に答える