I have set up a recordset to return a query-If I write-it works fine
Set ms = db.OpenRecordset("Select keyFK from authcomp where AuthorIDFK = 2 ", dbOpenDynaset)
If I write it like this it does'nt work
Dim holder As Integer
holder = 2
Set ms = db.OpenRecordset("Select keyFK from authcomp where AuthorIDFK = '"holder"'", dbOpenDynaset)
what is the problem with holder?
Set ms = db.OpenRecordset("Select keyFK from authcomp where AuthorIDFK = 2 ", dbOpenDynaset)
If I write it like this it does'nt work
Dim holder As Integer
holder = 2
Set ms = db.OpenRecordset("Select keyFK from authcomp where AuthorIDFK = '"holder"'", dbOpenDynaset)
what is the problem with holder?