Is there a bit of code I can add to a report LoadEvent which simple adds 1 to my text box "Text33".
Every time the report is opened I want that number in the text box to increase by 1 Creating a unique number every time
Starting value: 1
Dan
Is there a bit of code I can add to a report LoadEvent which simple adds 1 to my text box "Text33".
Every time the report is opened I want that number in the text box to increase by 1 Creating a unique number every time
Starting value: 1
Dan
You realize the textbox would have to be bound to a table to save the value? I assume you mean a textbox on a form:
Forms!FormName.Text33 = Forms!FormName.Text33 + 1
Cheers for the reply, Had a late night/morning :P
I didn't know they needed to be bound so I am trying to bound it...
The problem being this number is not related to anything! I simply want it to count up :P How do I set that up and make sure it is bound?
Why not create a System Table for just such values?
well I have tried a normal table with one field (No primary key)
and i have tried a normal table with 2 fields (one being a primary key)
I am confused as to what you mean? Could you please expand (I am a novice)
Thanks
The first table should work just fine. It will only have one record. Set it as the RecordSource of your form.
I have just tried setting the table as the source for the report but none of the other data works after lol... I have set up a query which combines the two but for some reason this does not show any data in the box :P
Just a reminder I am in a report, not a form, This report was based on the table, now its based on the query :P
You want a TextBox on a *Report* to remember what number it contains when you run the report again? I doubt you will get there, sorry.
Kinda of yes. I don't mind making a table for it I just don't know how? I have tried linking it but no luck and the load up code doesn't seem to work for reports
Maybe Paul (pbaldy) will have some ideas for you.
right thanks, I will drop him a line
Paul is subscribed to this thread so he sees what we have been talking about. Nothing else is needed to let him know.
damn too late :| I am soooo impatient!
I assume since the thread is marked solved that you sorted it out?