Everytime I connect my Access database into my page for some SQL statements like SELECT, INSERT, UPDATE, and DELETE - I make use of an absolute path in my data source such as Data Source = C:\MyData\grades.mdb.
But when I make use of a relative path in my data source such as ~\MyData\grades.mdb, I always receive an OleDbException error message.
Am I doing it correctly? What should be the correct code to have a relative path to the Access Database?