If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Header problem
Hi,
I have report. In header of this report I want to input data from table. Because data in report header has to be changed occasionally and he can change data in that table although he use mde database. I try this: Use DLookup() in the ControlSource of a text box on your report, e.g.: =DLookup("NameOfYourFieldHere", "NameOfYourTableHere") but error has occur: The expression you entered contains invalid syntax. You omitted an operand or operator, you entered an invalid character or comma, or you entered text without surrounding in quotation marks. What I have do wrong? Thanks |
#2
|
|||
|
|||
Header problem
Replace
NameOfYourFieldHere with the name of the field you wish to look up. Replace NameofYourTableHere with the name of the table that contains this field. Include the quote marks. For more help with DLookup() see: http://allenbrowne.com/casu-07.html If it still does not work, check your references: http://allenbrowne.com/ser-38.html -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "ANSWER" wrote in message ... I have report. In header of this report I want to input data from table. Because data in report header has to be changed occasionally and he can change data in that table although he use mde database. I try this: Use DLookup() in the ControlSource of a text box on your report, e.g.: =DLookup("NameOfYourFieldHere", "NameOfYourTableHere") but error has occur: The expression you entered contains invalid syntax. You omitted an operand or operator, you entered an invalid character or comma, or you entered text without surrounding in quotation marks. What I have do wrong? |
Thread Tools | |
Display Modes | |
|
|