This was the solution:
Private Sub cmdOpenDispo_Click()
Dim stDocName As String
stDocName = "frmDispoForm"
DoCmd.OpenForm stDocName, , , , acFormAdd
Forms!frmDispoForm!txtCaseID = Me.txtCaseID
End Sub
that way it opens to a new record with the specific CaseID I wanted. thanks!
hello!
I have a button on a form, which when clicked, opens another form. The code for my button is:
Private Sub cmdOpenDispo_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmDispoForm"
stLinkCriteria = "CaseID=" & Me.txtCaseID...
Hello good people. Could someone kindly tell me if I can have a textbox with a sum of other textboxes in it, and NOT have my sum in the footer of the report? I have a textbox with the following control source, and it always is empty?
=Nz([txtTime1]+[txtTime2])
Both txtTime1 and txtTime2 have...
The form this is on is a form which holds name information in the main part of the form, and then the address, ssn, and dob is in the subform. It has to be this way for a variety of reasons. At any rate, if I am understanding you correctly, if the user changes the ssn accidentally, which is on...
Hello. I ave a form on which I must check if the user has changed anything on both the form and the subform. my nested if statement is wrong, I can tell, because it doesn't work at all. Before I added the two blue lines, it was fine if changes were on the form, but didn't check the subform...
Hello, thank you for your reply. no, this still overwrites the existing record on the subform. This is so wierd. why won't it write a NEW record to my subform? very very confused.
Hello PHV. thank you kindly for your reply. Trying your suggestion, but unfortunately it still does not add the new witness to a new record on the frmAddNewCase.subfrmCaseWitnesses but instead overwrites whichever record on that subform the cursor was on when the user clicks the add new...
Hello. I am having trouble getting my code to add a new record to a subform. Here is the situation. I have a main form frmAddNewCase, which has a subform on it subfrmCaseWitnesses.
When the user clicks the button they first see a msgbox asking them if they want to search for a name first...
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.