megatronixs
Registered User.
- Local time
- Today, 04:21
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I have a main form where there is a subform in datasheet view.
the first 2 fields are date fields. This is part of a function to get data from a client based on a start and end date and. When we used the tool in Excel, when you had multiple clients with the same date range, you could drag those cells down as much as you needed, but this does not work in Access.
I added a button on the main form and a textbox. In the text box I want to put the amount of how many times I want to duplicates those dates and add them below in the next empty record. I could do this with an Insert Query. but was wondering how to add the amount of times it has to do this.
I got my starting code to figure out what will work.
This is what I have so far:
any help with the amount of times I the texbox "duplicte_times_txt">
I should also mention that currently when I have one row selected (where the mouse is) the message box will show up with the dates I need for this to pass to the next row,
Greetings.
I have a main form where there is a subform in datasheet view.
the first 2 fields are date fields. This is part of a function to get data from a client based on a start and end date and. When we used the tool in Excel, when you had multiple clients with the same date range, you could drag those cells down as much as you needed, but this does not work in Access.
I added a button on the main form and a textbox. In the text box I want to put the amount of how many times I want to duplicates those dates and add them below in the next empty record. I could do this with an Insert Query. but was wondering how to add the amount of times it has to do this.
I got my starting code to figure out what will work.
This is what I have so far:
Code:
Private Sub btn_duplicate_dates_Click()
'"tbl_batch_process" table where fields are
'"duplicte_times_txt" textbox to be used for multiply records
MsgBox Form!frm_batch_process!from_date_2 & " - " & Form!frm_batch_process!to_date_2
End Sub
I should also mention that currently when I have one row selected (where the mouse is) the message box will show up with the dates I need for this to pass to the next row,
Greetings.
Last edited: