PatrickStel
Gebruiker
- Lid geworden
- 20 mei 2015
- Berichten
- 39
Goedemiddag,
Ik zit vast op een probleem, ik heb al verschillende dingen geprobeerd maar kom er niet uit.
Ik moet de uitkomst van hyperlink_pv_var$ opslaan in mijn datasheet (tabel) ik heb dit al geprobeerd
Maar dit werkt niet, ik hoop dat jullie mij kunnen helpen.
Groeten,
Patrick
Ik zit vast op een probleem, ik heb al verschillende dingen geprobeerd maar kom er niet uit.
Code:
'Pop-up for information where the pv is located and save it to the db
Private Sub Destroyed_pv_Click()
If Me.Destroyed_pv = vbTrue Then
Dim Strg As String, hyperlink_pv_var$
Strg = "Typ your location here..."
Strg = InputBox("Fill in the location of the PV.", "PV Location", Strg)
If Strg = "" Then
hyperlink_pv_var$ = "You didn't fill in the box"
Else
hyperlink_pv_var$ = "Location of the PV is: " &vbNewLine & Strg
End If
MsgBox hyperlink_pv_var$
Else
End If
End Sub
Ik moet de uitkomst van hyperlink_pv_var$ opslaan in mijn datasheet (tabel) ik heb dit al geprobeerd
Code:
DoCmd.RunSQL "INSERT INTO Registratie formulier.PV_Location"_&"(PV_Location) VALUES "_&"(hyperlink_pv_var$);"
Maar dit werkt niet, ik hoop dat jullie mij kunnen helpen.
Groeten,
Patrick