What is the error message?
But what is the data type of the Patient.ID
column in the database? Even though SQLite is loosely typed, how you format parameters in a SQL statement can make a difference. If it is defined as TEXT, then you need to enclose it in quotes in the SQL statement.
Issue this instead:
Dim rs As RecordSet = Session.db.SQLSelect("SELECT Patient.ID, Patient.Forename, Patient.Surname, Patient.DateOfBirth, Patient.Address, Patient.Allergies, Patient.Notes, Patient.Type, Doctor.DocID, Doctor.DoctorName, Doctor.DoctorAddress FROM Patient INNER JOIN Doctor ON Patient.DoctorID = Doctor.DocID WHERE Patient.ID='" + patientID + "'")
or ...WHERE Patient.ID=" + Str(patientID))
if patientID is a number data type