megatronixs
Registered User.
- Local time
- Today, 04:26
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I created a form where I want capture the complexity of a case. There are 11 questions to fill in with yes or no.
I want to open the form with the form connected to the review_id that is part of the form and is in the main form too.
if there was already a record created, then it would open with that one.
What I can't manage is to open the form, create new record to be filled in if there is no current record for that review_id.
The form I open has the following fields:
record_id (set as autonumber)
review_id (set as number)
question_1 to question_11 (set as text)
this is the code to open the form by clicking on a button:
Any clue where I go wrong or miss?
Greetings.
I created a form where I want capture the complexity of a case. There are 11 questions to fill in with yes or no.
I want to open the form with the form connected to the review_id that is part of the form and is in the main form too.
if there was already a record created, then it would open with that one.
What I can't manage is to open the form, create new record to be filled in if there is no current record for that review_id.
The form I open has the following fields:
record_id (set as autonumber)
review_id (set as number)
question_1 to question_11 (set as text)
this is the code to open the form by clicking on a button:
Code:
Private Sub btn_complexity_check_1_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_complexity_check_l_1"
stLinkCriteria = "[Review_ID]=" & Me![Review_ID] 'listbox
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Any clue where I go wrong or miss?
Greetings.