Hi

While i am executing the following code, it throws an error message "Error is FROM clause"

cmd = New OleDbCommand("select * from patient table", cn)

What is the reason

Try

cmd = New OleDbCommand("select * from [patient table]", cn)

[] are needed if there is a space in an table, column name!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.