I have a simple question but I'm kinda stuck. I have a table with all users and their id. I frequently need userid. Everytime I need the id I don't want to have to do a query useing currentuser (I'm assuming that would tale longer). So I created a public variable UserID and in form_load I call a function which sets this variable and I then use it throughout the application. My problem is that every so often (I'm not sure what causes it to happen which is why I am posting)it is set to 0. This obviously causes lots of problems. Anyone know why or a simple way to get around it? I could call the function everytime I'm just afraid it may slow things down a bit.
Thanks!
Thanks!