My Assistant
![]() ![]() |
|
|
May 11 2007, 12:49 PM
Post
#1
|
|
|
UtterAccess Ruler Posts: 1,357 |
i have a name field that pulls back the salesman's name (works well)...
and in the text box on a report, i would like to add: "the name of the salesman is: " and then the [salesman name] field...? i keep getting an error...??? thank you. |
|
|
|
May 11 2007, 12:57 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 4,621 From: North Carolina, USA |
= "The Name of the Salesman is : " & [SalesmanNameField]
HTH Matt |
|
|
|
May 11 2007, 02:21 PM
Post
#3
|
|
|
UtterAccess Ruler Posts: 1,357 |
thankyou...
in the meantime, i've tried another textbox and field and i typed in: ="the invoice number is: " & [invoice] and when i run the report, i get an #error...? ??? thank you. |
|
|
|
May 11 2007, 03:26 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 4,621 From: North Carolina, USA |
Is invoice an attribute included in the report's recordsource?
|
|
|
|
May 11 2007, 03:45 PM
Post
#5
|
|
|
UtterAccess Ruler Posts: 1,357 |
invoice is a field name that initially was in the data source of the textbox...
thank you. |
|
|
|
May 11 2007, 04:12 PM
Post
#6
|
|
|
New Member Posts: 8 From: Austin, TX |
mjschukas,
To answer your question, somebody already asked about records and #Error messages. http://www.utteraccess.com/forums/showflat...1409616&Zp= Now, if somebody could help me with the #Error messages I get in forms? Whenever I go make a new record, I have the following control text for a field: =returnPres([DesignPres]) This is a simple function. DesignPres is defined as a double in the table, and here is the returnPres function: Public Function returnPres(ByVal num As Double) As String If num > -14.7 Then returnPres = CStr(num) & " PSIG" Else returnPres = "--" End If End Function The function works fine whenever I already have a record for [DesignPres]. I have all sorts of functions throughout all my forms, and I get annoyed whenever I see a "#Error" message when I go make a new record with my forms. The user enters [DesignPres] in another form, and I have it display in several other forms as a reference. Help? |
|
|
|
May 14 2007, 11:11 AM
Post
#7
|
|
|
UtterAccess VIP Posts: 4,621 From: North Carolina, USA |
I've seen this before - try creating a new textbox control and entering the expression again.
Matt |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 25th May 2013 - 08:03 AM |