Code:
$cols2 = 'Lock,ID,Date,Time,Userid,Quick_notes,Company,Contact,Callback,Notes';
@db2_cols = split /,/,$cols2;
$db2_file_name = $db_script_path . "/../db/notes.db";
$db2_key_pos = 5;
are the fieldnames correct above? they must be in same order they appear in your cfg file. Company is 6, not 5 in that list.
in case contact is blank, change:
Code:
if ($rec2{'Contact'}) { print qq|, $rec2{'Notes'}|; } # I did not notice this was and if statment.Code:
print qq|, $rec2{'Notes'}|; # I did not notice this was and if statment.going to play golf now!