Hello . Some time ago I built a database with ms access for my library books. The laptop I have has genuine Windows 10, with an i7 processor and Microsoft Office LTSC Professional Plus 2021. The database uses vba code, especially in the on current events in the forms. I recently bought a new i9 laptop with genuine windows 11 and installed the same office and database. UNFORTUNATELY THE VBA CODE IS NOT WORKING. Any advice is invaluable. I'm in a dead end . Thanks in advance..
Here is a sample of VBA code :
Select Case Me.Exists 'the name of the control with the value to be tested
Case "NOΙ"
Me.Exists.ForeColor = RGB(255, 0, 0) '(red)
Me.Emoji.Picture = "C:\network21\Epix_Database\Images\BooksCovers\Emoji_No.jpg"
Case "YESΙ"
Me.Exists.ForeColor = RGB(0, 0, 0) ' (black)
Me.Emoji.Picture = "C:\network21\Epix_Database\Images\BooksCovers\Emoji_Yes.jpg"
End Select