[AccessD] Dynamic SQL statement
Susan Harkins
ssharkins at gmail.com
Mon Dec 7 16:31:14 CST 2015
Oh my... now that is easier isn't it -- and if a control's empty, does it
throw an error? I'm afraid my mind always turns to SQL and maybe that's not
a good thing. :)
I have the day off tomorrow -- it's inauguration day here in Kentucky for
our newest Governor. I'll try it out on Wednesday. Thank you.
Susan H.
On Mon, Dec 7, 2015 at 5:11 PM, Bob Walsh <BWalsh at acumentra.org> wrote:
> How about...
>
> Set rs1 = CurrentDb.OpenRecordset("Exam", dbOpenDynaset,
> dbAppendOnly)
> rs1.AddNew
> rs1!IndividualIDFK = ctl.Column(2, varItem)
> rs1!ExamDescriptionIDFK = strExamType
> rs1!ExamDate = strExamDate
> rs1!Results = strObservation
> rs1!NextExamDue = strFollowupDate
> rs1.Update
> rs1.Bookmark = rs1.LastModified
>
> rs1.Close
> Set rs1 = Nothing
>
More information about the AccessD
mailing list