Search results

  1. L

    How to grab the value of a radio button in VBA

    Ok, I got it. I already had them as a group, I didn't realize they had a value of 1, 2, 3. Thanks! Now I need to figure out how to save the report as a pdf to my computer.
  2. L

    How to grab the value of a radio button in VBA

    Hi guys, I have three radio buttons (Screen, Print, PDF) that I am using to view, print, and save my reports. I am using nested if statements that look like this. If Me.txtReportName = "Week at a Glance" Then If Me.rdbScreen.Value = True Then DoCmd.OpenReport "rptWeekAtAGlance"...
  3. L

    DCount syntax for multiple criteria with a checkbox

    Nevermind, I was using the "Immediate Window" without using the ?
  4. L

    DCount syntax for multiple criteria with a checkbox

    DCount("[ActionIDFK]", "tblActionsPerWeeklyPlan", "[WeeklyPlanIDFK] = " & Me.txtWeeklyPlanID & " AND [ActionIncluded] = True AND [ActionIDFK] = 3") Now I'm getting an = sign is expected
  5. L

    DCount syntax for multiple criteria with a checkbox

    Hi guys, I'm a little rusty on the syntax for multiple criteria. I need the number of records that have the Plan ID of "Me.txtWeeklyPlanID" with the ActionIncluded = True and the ActionIDFK = 3 This is the code I use, but I get an "Expected list separator" error. DCount("[ActionIDFK]"...
  6. L

    Copy and insert records from the same table!

    I most certainly will. Thanks!
  7. L

    Copy and insert records from the same table!

    Thanks for the feedback, it helped me jog my brain a bit and I figured it out. I figured out the correct way to put it into a query. Heres the sql I ended up using in case you're curious. INSERT INTO tblFoodGroupsPerWeeklyPlan ( FoodGroupIDFK, [Index], WeeklyPlanIDFK, IncludedInDiet ) SELECT...
  8. L

    Copy and insert records from the same table!

    Hi CJ, Thanks for getting back so quickly. I am not getting an error, it's just not doing anything. I don't know how to use the debug. Print feature. I am using an on_click event to execute the sql. Here is the complete code for that event. Private Sub btnCopyPreviousWeeksGroups_Click()...
  9. L

    Copy and insert records from the same table!

    Hello everyone, I am hoping you might be of some help. I want to copy the records from the previous week into the same table, but with a different weekly Id. In my code I assigned the previous week to the "prevPlanID" and the current week to the "curWeeklyPlanID". Here is the SQL I used, but...
  10. L

    #Name? Error on Form

    This information is great and much appreciated, but I was wanting to know why the validation rules and validation text weren't working and if one of the fields were empty, it didn't even save the record. Why would that happen?
  11. L

    #Name? Error on Form

    Thanks guys. I'm not sure what happened. I must have messed around with something to fix it. Wish I knew what it was. I am having trouble with field validation. I'm used to using code to make up rules with an after-insert event, but I thought I could use validation rules with validation...
  12. L

    #Name? Error on Form

    It is bound. In the properties section of the form, birthdate is used for the control source I can. When you open the database. If you open the main menu and click "add user", you will see the problem. When you go to type in the first name, the birthdate field fills with #Name?. I have a...
  13. L

    #Name? Error on Form

    I edited my answer. The source is the actual user's table, and the control source of the birthdate field is the birthdate from the table.
  14. L

    #Name? Error on Form

    The Users table and the birthdate field from that table is the control source. On the form the field is txtBirthdate.
  15. L

    #Name? Error on Form

    Hi Guys, I added a new field "birthdate" to an existing table and form. When I go to add a new record using the form, the birthdate field fills in with "#Name?". I am stumped! Does anyone have any idea why this may be happening?
  16. L

    Can I force the footer to a seperate page?

    I already have a DOW group, I added a footer to that and it works great. Thanks!
  17. L

    Can I force the footer to a seperate page?

    Ok, but it's going to put the "Specific Meal Plan" data after every meal. I need it after all the meals are displayed.
  18. L

    Can I force the footer to a seperate page?

    Here ya go. I attached the design view and the first three pages of the report.
  19. L

    Can I force the footer to a seperate page?

    That puts a new page for every record in the group. How do I put a page break after all the records in that group are displayed?
Top Bottom