Hey,
I'm looking for a code to know if a row with primarty key ticker is
already in my table DDM.
I use the following code but there seem som problems. It says the
variable TextTicker.Text is not defined. Can someone help me out? Thx
s_Path = ActiveWorkbook.Path
s_Path = s_Path & "\Thesis.mdb"
Set DB = DAO.OpenDatabase(s_Path)
s_SQL = "SELECT Ticker & FROM DDM " _
& "WHERE Ticker = ' & Me.TextTicker & " ';"
If s_SQL = TextTicker.Text Then
MsgBox "Found"
Else
MsgBox "Not found"
GoTo execute_code:
End If
Set rs = Nothing
Set DB = Nothing
execute_code:
Bookmarks