Hi all, at a loss for the correct syntax to see if a connected access database field equals a specific value... using variotions of the following but nothing is working:
some code ...
more code etc...Code:Set rst = dbs.OpenRecordset("tbl_Clauses_By_Func_Code_For_Surv_Report") Selection.GoTo What:=wdGoToBookmark, Name:="Code_140" With rst '.ActiveDocument.Bookmarks Do While Not .EOF If {[functional code]} = "140" & "*" Then Selection.TypeText Text:=![ID] & "" Selection.MoveRight Unit:=wdCell, Count:=1, Extend:=wdMove Selection.TypeText Text:=![Clause Number] & ""
I have connected to an access database and am pulling table data into word using bookmarks... I want to use the "IF statement" to determine which bookmark to move to based on the data in the access field...
... can someone point me in the right direction
thank you
Kevin



