This is for a command button array but i have a problem in the quoted text, the error Expected End of Statement, i am learning from a book, i guess there is some problem in typing the code. Please somebody resolve my problem!
Dim BookMark1 As Variant
'Mark your place in case no match is found
BookMark1 = dtaTitles.Recordset.Bookmark
'Move to top of table to start search
dtaTitles.Recordset.Find "Author >= '" + cmdLetter(Index).Caption + "'", 0, adSearchForward
If dtaTitles.Recordset.EOF = True Then
dtaTitles.Recordset.Bookmark = BookMark1
It would also help if you specify what version of VB you are using. In my version (2010), Variant is not a valid type. You should be using "&" for concatenation rather than "+". And finally, instead of
i used vb6 because i am just learning now, so i want to start with the first vb program.
Thanks "Reverend Jim" I succedded but i just changed something since it gave me another error, i did not put the (..) around the code, cause its telling me to put an "="