Quote Originally Posted by arshesander View Post
How?

Because it in my MSSQL it goes like this; 'Select * From MOrder WHERE CustID=" & cCusID

How about when there is no current user?
You need to map an order/shopping cart to a session ID (which you can retrieve from the session) and later, when the user decides to check out and log in with his/her credentials, map the session ID to the user ID to complete the check out.

If you are currently mapping the order/shopping cart to a customer ID (which I believe you are), you may have to change that logic.

.