First, create the new field as type text and a size that will ft the concantenation of the fields.
Then, create an update query that inserts the this expression:
[Field1] & " " & [Field2] & " " & [Field3]
into that new field.
Field1: "City"
Field2...
(inputweek-(cint(inputweek/100)*100))+((52-(10+cint(inputweek/100)))*100)
The ()'s may be off, but this should work if inputweek <1199, assuming your always using 52 week years, and that you have another routine to get the first few weeks of the year. This can get you values at the end of the...
Check the code behind you BeforeUpdate event. Make sure that the keys are posted in the right order. You may have to verify that all required fields on the form have been filled in first.
It looks like all you are missing is the
rst!Message = Me.txtMessage
Do this before the update and that should put the message from the txtMessage control with every selected LogID.
I have a continuous form with a text box that will display one of two values.
If the value is X, make the background green.
If the value is Y, use the default Red background.
The form works great and the formatting works, unless there is only one record. If there is only one record, the Form...
FindPO = InputBox("Enter the PO #", "Bionetics PO System")
DoCmd.OpenForm "frmPO", , , "PONumber=FindPO"
Should be
FindPO = InputBox("Enter the PO #", "Bionetics PO System")
DoCmd.OpenForm "frmPO", , ...
Here's a small example:
Public Sub TestSplit()
Dim arr
Dim t As Variant
arr = Split("h,i,t,h,e,r,e", ",")
For Each t In arr
Debug.Print t
Next t
End Sub
Check the referential integrity rules in the relationships window. You will need to make sure you updates are done in the right order, or do not enforce referential integrity.
You should create a query that pulls data from the two tables and base your form on that. The recorset fromthe two table should update the fields you need.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.