(Error 3071) Access -


i'm trying search course id checking the faculty id , course id in course table. simple query when launched receive a

(this expression typed incorrectly, or complex evaluated. example, numeric expression may contain many complicated elements. try simplifying expression assigning parts of expression variables. (error 3071)

the vb script i'm using looks this.

private sub course_id_dblclick(cancel integer)  dim x integer  dim y string  dim z integer  x = me.faculty_id.value  me.course_id.rowsource = "select course.[course id] course course.[course name]=['course']and course.[faculty id]='" & x & "'"  end sub 

i think getting message because using wrong delimiters , confusing terminology in object names (where field content 'course' , table name [course] same.

i guess datasource ms-access database. should use " (double quote) value separator (you'll have double sign inside expression) text, , nothing numbers. select instruction like:

"select course.[course id] course course.[coursename]=[""course""] , course[facultyid]=" & x 

add 'debug.print me.course_id.rowsource' check final string should like:

select course.[course id] course course.[coursename]=["course"] , course[facultyid]= 3 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -