I am designing a database for finances and have encountered only one problem. There are three fields in a form, all for currency. Enter two numbers which log into a table, then a query takes the difference and logs it for reference on another form. The third box has the simple equation x-y (where x and y are the names of first two boxes). I simply am trying to create a checkbox that will leave the information in the first to boxes, but turns the third box to zero. I need to be able to change the function in the control box. So I came with a module to do it, but can't seem to get all functions to work. Here it is in pseudo-code that I want to put as a function in box 3.
If checkbox = -1 (the value for when the checkbox is clicked I believe)
Set function (or control source) = 0.0 (or null value)
Set (function in query = 0 instead of x-y)
Else
Set function (or control source) = x-y (default)
I have only programmed in C, and although similar, VB keeps messing me up. Any help would be greatly appreciated. If your confused on the setup, I can send the DB to you to see when I am doing. Thanks
If checkbox = -1 (the value for when the checkbox is clicked I believe)
Set function (or control source) = 0.0 (or null value)
Set (function in query = 0 instead of x-y)
Else
Set function (or control source) = x-y (default)
I have only programmed in C, and although similar, VB keeps messing me up. Any help would be greatly appreciated. If your confused on the setup, I can send the DB to you to see when I am doing. Thanks