AccessInitiate
New member
- Local time
- Today, 13:26
- Joined
- Dec 14, 2007
- Messages
- 2
I've searched thoroughly for terms similar to this topic, but I didn't find what I was looking for. I posted in someone else's thread that was relevant, but since her problem has been solved, I was skeptical on whether anyone would go in there to read my post.
I'm having trouble with my database in terms of checking in tools and checking out the tools. I sort of have the check-out working, where current date is inputted into the "date checked out" field. I was able to get that to update into a table, where the records are stored.
The main problem is checking in the tools. I tried using the same logic of taking the current date and putting it into the "date checked in" field, but it would just create a new record in the table and not update the one that it's supposed to; the original record that was used for the check out.
~How do I get the check-in form to update for the same exact record that was used for the check out?
-----
There's also a problem with the check out afterupdate function. I have a combo box in a form that should update the subform so that all the records for the selected criteria is displayed. That doesn't work. The code I used was:
Private Sub cboName_AfterUpdate()
Dim strSQL As String
Dim LSQL As String
Dim LSearchString As String
LSearchString = cboName
'Filter results based on search string
LSQL = "select * from CheckOut"
LSQL = LSQL & " where Name LIKE '" & LSearchString & "'"
Form_sfrmCheckOut.RecordSource = LSQL
End Sub
~How can I fix this code so that the combo box will update the subform and display all the records for any name criteria that is selected?
Sorry for the long post. Please, any assistance would be greatly appreciated.
Thank you!
Jeremy
I'm having trouble with my database in terms of checking in tools and checking out the tools. I sort of have the check-out working, where current date is inputted into the "date checked out" field. I was able to get that to update into a table, where the records are stored.
The main problem is checking in the tools. I tried using the same logic of taking the current date and putting it into the "date checked in" field, but it would just create a new record in the table and not update the one that it's supposed to; the original record that was used for the check out.
~How do I get the check-in form to update for the same exact record that was used for the check out?
-----
There's also a problem with the check out afterupdate function. I have a combo box in a form that should update the subform so that all the records for the selected criteria is displayed. That doesn't work. The code I used was:
Private Sub cboName_AfterUpdate()
Dim strSQL As String
Dim LSQL As String
Dim LSearchString As String
LSearchString = cboName
'Filter results based on search string
LSQL = "select * from CheckOut"
LSQL = LSQL & " where Name LIKE '" & LSearchString & "'"
Form_sfrmCheckOut.RecordSource = LSQL
End Sub
~How can I fix this code so that the combo box will update the subform and display all the records for any name criteria that is selected?
Sorry for the long post. Please, any assistance would be greatly appreciated.
Thank you!
Jeremy