User Profile
Collapse
-
Awesome, that seems to have helped. Thanks for your suggestion -
Object variable or With block variable not set
Hello
I am working on a project to export data from a query into an Excel file. I have a form with a button on it and the button when clicked runs a function that is supposed to run the query and store it into a recordset, create a new Excel file, dump the contents into the Excel file and do some cell formatting on it to make it look decent.
I have put it together piece by piece, and it works fine up until I try to... -
cool. that was shorter than my solution. Although I did have to add a check because apparently as is, it bases Week 1 off of January 1. Unfortunately my company doesn't do that. If Jan 1 is on Saturday or Sunday it is not included in Week 1. So I had to add a check for that, but this helps...thanks!Leave a comment:
-
Is there a way to do the reverse? Such as you have the week number, but want to find the date of the first day in that week? As an example, if using Monday as the first day of the week, what is the date of the first day of week 6 for a given year.Leave a comment:
-
-
That makes sense. It works, for changing the caption of the form. But is it possible to change a control on the report? I have tried changing labels and text boxes in the report_open function but it always gives an error that I can't assign a value to the object...maybe I can't do that with reports?...Leave a comment:
-
Retrieve Filter value
Hi guys
I've got a report that I have created. It is based off of a query that I made. I use it to show different combinations of data, but its the same type of information...
It is called from 5 buttons on a form. each of the buttons opens the report to show something different, most are just the time frame of the data, whether it be 1 day, 1 week, 1 month, 1 year... Each one uses the doCmd.OpenRepor t method, and then... -
-
thanks for the suggestion
The primary key for the table with subforms is based on the day and an employeeID. The day is autopopulated, but the employeeID is not set in the form until the user chooses which one. So I dont think it could be inserted without the rest of the key identified...of course I could be wrong about that.
JoshLeave a comment:
-
default code for Save button
Hi
I've created a form that has 7 subforms. It is the same subform, bound to a table, just repeated. This form represents a week, and each subform is used to enter in data for each day of the week. The main form has a combo box that must have a value selected before anything else can happen. Once that value is selected, the 7 subforms are enabled, and also one of the fields is populated with the value from the main form. These subforms... -
date literal with variable
Hi
I'm trying to create a form that a user can type in a year, such as 1998, and then click a button that will find out which day of the week that year started on, and then calculate what date every monday in that year will fall on. Basically to find the beginnings of each week in a given year.
Where I have a question is when I display (in a text box on the form) the full date for January 1, XXXX.
I know...
No activity results to display
Show More
Leave a comment: