|
|
 |
| found 11 articles for 0.302 sec |
  |
Group: microsoft.public.access · Group Profile · Search for Nextinv in microsoft.public.access
Author: CW
Date: Sep 10, 2008 05:48
Have been studying your reply and my entries and I w3as missing a ! Have now entered and it works fine Tks "Douglas J. Steele" wrote: Assuming that CProp, CPO, invdate, curamt, curnote, nextinv and curstatus are variables, you have to put them outside of the quotes so that their values will be put into strSQL: strSQL = "INSERT INTO WorkOrder(Property,PONo,Workdate,totalamt
|
| Show full article (2.07Kb) |
Group: microsoft.public.access · Group Profile · Search for Nextinv in microsoft.public.access
Author: Nylex
Date: Aug 16, 2008 23:40
Assuming that CProp, CPO, invdate, curamt, curnote, nextinv and curstatus are variables, you have to put them outside of the quotes so that their values will be put into strSQL: strSQL = "INSERT INTO WorkOrder(Property,PONo,Workdate,totalamt,wknotes,invno,status) " & "VALUES(" & CProp & ", '" & CPO & "', " & Format(invdate, "\#yyyy\-mm\-dd\#") & ", " & curamt & ", """ & curnotes & """
|
| Show full article (1.80Kb) · Show article thread |
|
| I am close to finishing and have I hope one last error
The following returns an error
strSQL = "INSERT INTO
WorkOrder(Property,PONo,Workdate,totalamt,wknotes,invno,status)" &
"VALUES(CProp,CPO,invdate,curamt,curnotes,nextinv,curstatus)"
CurrentDb.Execute strSQL, dbFailOnError
Response = acDataErrAdded
Run Time Error 3061
Too few Parameters. Expected 7
I count seven in |
|
 |
|
 |
Group: microsoft.public.access · Group Profile · Search for Nextinv in microsoft.public.access
Author: Nylex
Date: Aug 16, 2008 16:00
Tks - that worked fine The fields are in the original code before I called the function In the function I put the debug.print statement and a stop line so I could see what answer it was giving Your solution cut a few liners of code of mine Tks "Douglas J. Steele" wrote: First, your function is written incorrectly: you're not returning a value from it, nor displaying one (which
|
| Show full article (2.01Kb) · Show article thread |
|
 |
|
1 ·
2 ·
next |
|
|