Forums
This topic is locked
problem with strings and vars
12 Apr 2002 18:33:47 Tom Ka posted:
Hi,I have a include-file where I have vars like
articelTitelNum1 = "Titel1"
articelTitelNum2 = "Titel2" and so on
on the other hand I have a Access-DB where I have the field articelID (this corresponds with the Titels from the include-file mentioned above) and other fields.
For some reasons I can not have the titels in the DB which would make everything easy.
Now I have to make a table which displays in the first row the articelID (numeric) and in the second row it should display the corresponding Titel from the included-file(alphanumeric). So the first line for ex. display "1" and the second row display "Titel1"
I tried hundreds of combinations like:
%= articelTitelNum & (Recordset1.Fields.Item("ArticelID".Value) %
(left the brackets away cause of forum code)
so that this builds a new variable which writes Titel1 for the variable from the include-file from above in the second row. but it only display the number and not the textstring from the include file or it writes "articelTitelNum1" instead of replacing this with the vars or it make errors...
Can anyone help me how to put this two informations (db and include) together that it is a new variable and will be replaced with the text from the include-file?
I'm sure, it is very simple but I'm a scriptingdummy! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> Thanks
Tom