Writing Ideas Organiser Software
Technology25 mins ago
im using access and visual basic as the code behind it. i want to enable a button only when the date in a text box is the same as in the database column (date). any part of the column on the bottom of the column or top or middle. this only works with the top (top row).
Thanks.......
No best answer has yet been selected by keys. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.It's been a while, but try:
DataBase.Recordset.Index = "FieldName"
DataBase.Recordset.Seek "=", SearchStr 'do the search
If DataBase.Recordset.NoMatch = false Then
Button1.enabled = true 'enable the button
End If
where:
DataBase is the name of your database
FieldName is the column you want to search
SearchStr is the date you want to find