SnakeEyes909
IS-IT--Management
hello again. i am having a issue getting the results of a vba query into a veriable or to be displayed.
i have a form, that i need to insert a item from a access db. i can get it to query, but how do i display the results.
SigFile is the variable that i need to put the results of the query into. basicly SIG_IMAGE is a path saved in a db field. any answer and explination so i can learn from my mistake...
thanks
i have a form, that i need to insert a item from a access db. i can get it to query, but how do i display the results.
Code:
strSQL2 = "select SIG_IMAGE FROM tblPHYSICIAN WHERE PHYSICIAN_NAME = " & PHYSICIAN_NAME
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source = " & strPath
Debug.Print strConnection
Set cnn = New ADODB.Connection
cnn.Open strConnection
cnn.Execute strSQL2, lngSuccess
cnn.Close
'SigFile =
doc.InlineShapes.AddPicture FileName:=SigFile, LinkToFile:=False, SaveWithDocument:=True, Range:=doc.Bookmarks(bkmName).Range
Set docs = Nothing
Set cnn = Nothing
SigFile is the variable that i need to put the results of the query into. basicly SIG_IMAGE is a path saved in a db field. any answer and explination so i can learn from my mistake...
thanks