My Assistant
![]() ![]() |
|
|
Oct 8 2007, 03:18 PM
Post
#1
|
|
|
UtterAccess Enthusiast Posts: 81 |
I have an dbase (attached) that I'd like some help with.....if someone is willing to look at it.
When it opens, it opens to a small form. You enter the data, (you're free to enter any), then I'm trying to do the following. I have a button that launches me to another form, where I've stored several registration dates. At the end of each of those records is a button. I want that button to export that record to the subform in the main Registration form. I'm just not sure how to do it. Any help would be appreciated. Thanks in advance....
Attached File(s)
|
|
|
|
Oct 8 2007, 06:02 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
I used san Appedn query.
CODE Private Sub Command10_Click()
Dim strSQL As String strSQL = "INSERT INTO RegConTable ( Items, Description, [Date], Price, Comment, Button, [Key] ) " strSQL = strSQL & " SELECT ConfTable.Items, ConfTable.Description, ConfTable.Date, ConfTable.Price, ConfTable.Comment, ConfTable.Button, " & Forms!RegForm.Key & " AS K " strSQL = strSQL & " FROM ConfTable WHERE (((ConfTable.Items)=""" & Me.Items & """ ));" CurrentDb.Execute strSQL Forms!RegForm.RegConForm.Form.Requery End Sub See the attached Edited by: HiTechCoach on Mon Oct 8 19:03:52 EDT 2007.
Attached File(s)
|
|
|
|
Oct 8 2007, 06:10 PM
Post
#3
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
Boyd -
I am glad to know that I am not the only one with typing skills after a trip to the wine cellar... QUOTE I used san Appedn query. I trust you know that I am just trying to have a bit of fun at both our expenses... (IMG:http://www.utteraccess.com/forum/style_emoticons/default/wink.gif) Jack |
|
|
|
Oct 8 2007, 06:16 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
I have a that new dyslexic keyboard! (IMG:http://www.utteraccess.com/forum/style_emoticons/default/sad.gif) (IMG:http://www.utteraccess.com/forum/style_emoticons/default/compute.gif)
|
|
|
|
Oct 8 2007, 07:56 PM
Post
#5
|
|
|
UtterAccess Enthusiast Posts: 81 |
Thanks so much. It worked perfectly. I really appreciate the help. I wasn't sure how to handle the subform.
The Forms!RegForm.RegConForm.Form.Requery explains it. Thanks again. |
|
|
|
Oct 8 2007, 10:59 PM
Post
#6
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
You're welcome!
Glad we could assist. I could not of done it with my spell checker, Jack! (IMG:http://www.utteraccess.com/forum/style_emoticons/default/sad.gif) (IMG:http://www.utteraccess.com/forum/style_emoticons/default/uarulez2.gif) |
|
|
|
Oct 9 2007, 08:22 AM
Post
#7
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
Now why can't I think of a cool answer like that? (IMG:http://www.utteraccess.com/forum/style_emoticons/default/thumbup.gif)
Jack |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 21st May 2013 - 10:26 PM |