You have to use a Carriage Return *and* a Line Feed. You can put this in an unbound textbox on the report (remember to set the "Can Grow" property to yes).
IIf(isnull([AddressLine11]),"",[AddressLine11]+Chr(13)+chr(10))+IIf(isnull([AddressLine12](,"",[AddressLine12]+Chr(13)+chr(10)) ...
:IIf((DatePart("m",[start date])=5 And DatePart("d",[start date])>15) Or (DatePart("m",[start date])=8 And DatePart("d",[start date])<16) Or (DatePart("m",[start date])>5 And DatePart("m",[start date])<8),"summer","academic year")
You have to strip them off one at a time. The string doesn't get any longer than the three field I hope - each expression gets a little hairyer.
Expr1: Left([yourfieldname],InStr([yourfieldname],":")-1)
Expr2...
I believe you wanted to list files in a directary in a listbox on your form? Go to the properties list for your listbox (I used the name "Test1" for the listbox in the code below) and change the "Row Source Type" to "Value List". The code below will list all files in the specified directory in...
In the query that your form is based on enter something like this in a new field:
CustAddress:iif([shippingaddressfield] is null,[billingaddressfield],[shippingaddressfield])
You then reference CustAddress in your form.
You have to convert to a decimal first:
=Left([textboxname],InStr([textboxname],"/")-1)/Right([textboxname],Len([textboxname])-InStr([textboxname],"/"))
Try this instead:
If Tamuid is a number field:
DLookup("LastName", "Registrasi_Tamu", "TamuID =" & me![TamuID])
If Tamuid is a text field:
DLookup("LastName", "Registrasi_Tamu", "TamuID ='" & me![TamuID]& "'")
In the afterupdate event of your combobox use something like this:
Private Sub Combo1_AfterUpdate()
Select Case Me!Combo1
Case Is = 1
Me!Image0.Picture = "PatchandNameofImage1"
Case Is = 2
Me!Image0.Picture = "PatchandNameofImage2"
Case Is = 3
Me!Image0.Picture = "PatchandNameofImage3"
Case Is...
Do the misc. items all have IDs starting with "m"? If so all you have to do is something like:
if left(me!IDtextbox,1)<>"m" then
if dcount("*","yourtablename","ID = '" & me!IDtextbox & "'")>0 then
msgbox "Duplicate ID"
end if
end if
Something like this should do it:
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("table1")
Dim fs, TextFile
Set fs = CreateObject("Scripting.FileSystemObject")
Set TextFile = fs.CreateTextFile("c:\testfile.txt", True)
Do Until rst.EOF = True
TextFile.WriteLine ("C:\softjuke\files\"...
When you've come out of the loop and are entering the last record:
rsDestination.Fields("Question_Number") = strQuestion
should be:
rsDestination.Fields("Question_Number") = strPrimaryQuestion