Did you try putting proper spaces in between
VB Code:
  1. gstaf.open "SELECT * FROM staf WHERE id='" & gpermohonan("id") & "'" , conn