I am having trouble declairing a variable so that I call get it's value in one event but then call to that variable to retrieve the value in other events (all on the same form.
The variable I am trying to declair is
I have tried:
Thanks for helping, I hope my code snippets are enough to solve this problem.
The variable I am trying to declair is
Code:
vba: strstatus as string
Code:
public ststatus as string ' the counter is always 1 even though a Dcount is performed from the table, and the values that are sent to the table via inert query are never sent to the table
Code:
Option explsit Dim ststatus as string ' ststatus only holds a value onclick event, in other events ststaus is 0 or null (and it was never set to that value, I tested with textboxes to varify that a value should be present.
Code:
public sub ok onclick() ststatus = Dcount ....(vailid dcount statmdnt) end sub public rec () If ststmtus is >3 then msgbox "count is" & chr$(32) & ststatus ' and the count is always 0 , even though the value add up to definetly more then 0 in the table
Comment