Filip Brnic
Programmer
Long time no see, I've stumbled upon a roadblock, I have no clue on how I would exactly do this because I never used this syntax
(table: akcionari, field:rednibr)
I have a textbox1 in my form, I have a button that appends blank and lets me insert values into textboxes, but my textbox1 is a number, basically index number, so if there is no records and you append a new one it should be 1, then if the last record was 1 the one after should be 2,
I had an idea that you could just do something like this :
command1.click event
Local x
go bottom
x = VAL(akcionari.rednibr)
thisform.text1.value = X+1
but it doesnt work.
Its simple but i have no clue how to do it .
IF someone could get me going on this or do it for me so i learn this forever.
BTW, there were errors about function type, count being invalid, but my rednibr field is a numeric (2) so i had no clue what that was about.
hope someone can help!
(table: akcionari, field:rednibr)
I have a textbox1 in my form, I have a button that appends blank and lets me insert values into textboxes, but my textbox1 is a number, basically index number, so if there is no records and you append a new one it should be 1, then if the last record was 1 the one after should be 2,
I had an idea that you could just do something like this :
command1.click event
Local x
go bottom
x = VAL(akcionari.rednibr)
thisform.text1.value = X+1
but it doesnt work.
Its simple but i have no clue how to do it .
IF someone could get me going on this or do it for me so i learn this forever.
BTW, there were errors about function type, count being invalid, but my rednibr field is a numeric (2) so i had no clue what that was about.
hope someone can help!