Try changing this line: cmd = New OleDbCommand(SQL) to this:
cmd = New OleDbCommand(SQL,cn)
Also, your Page_Load event probably isn't working, because it's not wired up. Is there a 'Handles Page.Load' at the end of the declaration line?
Tekmaven
Software Architect
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28