Search results

  1. B

    Date Criteria

    If you are trying to return a row from table 2 where the Date is either equal to the Date in table1 or the next nearest Date prior to the Date in table1 then I would not include table2 as a table in the query, just use an equation in the column to find the latest Date from table2. The only...
  2. B

    Change Password Button

    Add your button and in the On Click event you could add something like this: Dim NewFirst as String, NewRepeat as String If MsgBox ("Do you want to change your password?",vbYesNo,"Change Password") = vbYes Then GetNewPassWord: NewFirst = InputBox("Please enter your new password") NewRepeat =...
  3. B

    Probably Real Redundent Question

    Here is a DB setup to send email using GMail. It is hard configured for GMail, but it can be set for any email server. Use form1 and check out the Module for more info.
  4. B

    Programmatically alter detail of a report, then use that report as subreport

    It should not matter. One thing to check, the On Format event only fires when you print or print preview, not in report view. Also, you can reference the controls property more simply by using Me.ctl_label.caption = "New Caption" instead of detail.controls.item(x).caption which may become...
  5. B

    How to Print a Blank Form

    In the report On Open event you can test for your dummy file number and choose to not show the value by changing the controls source to null: If Me.fileNumber = 0 Then Me.FileNumber.ControlSource = "" This will leave the file number blank. I would consider using 0 or a negative number as...
  6. B

    Access Help: Date Querries or Calculation

    Glad it helped. Please start a new post with a new question.
  7. B

    How to Print a Blank Form

    Creating the blank record is your solution. You only need to have 1 field filled in (should be your primary key which wouldn't get printed anyway) and the report will now show for that record as all blanks.
  8. B

    Date Criteria

    You can't link two tables together if both tables do not contain exactly the same data in the field you are linking them on. Are you saying that the Date in table 1 will not match the date in table 2 but somehow you want to return a previous record in table 2 when that happens?
  9. B

    Disabled ribbon randomly shows up

    If you would like to attach your DB I can take a look and see what my experience is.
  10. B

    Change Password Button

    Do you mean the DB password or a password that you created that is stored in a table?
  11. B

    Access Help: Date Querries or Calculation

    Your table should only contain fields for raw data such as Name, Dues, Date Joined etc. Date Expired can be performed in a query as a calculation based on either Dues or Type and the Date Joined. Also consider having a field to decide if member is active or not. Attached is a DB with a report...
  12. B

    Combo Box control by tab

    In the On Key Down event for the combobox add code similar to this adjusting for your control name etc.: 20 With Me.Combo1 30 Select Case KeyCode Case vbKeyDown 40 If .ListIndex < .ListCount - 1 Then 50 .Value =...
  13. B

    Blank lines in report

    That is up to you how many lines you would like. You said you were considering adding a column to your table. If you did that then the number of lines could be based on that value. For X = 1 To Me!NumbOfLines If you need more help you can attach your DB and I can modify it.
  14. B

    retrieve records based on combobox

    In the After Update event for the combobox you could filter the form, for example, Me.Filter = "[StaffID]=" & Me.ComboBox1 Me.FilterOn = True
  15. B

    Date Criteria

    If you are using the date fields to link the two tables make the table that always has the date the From side table and left join to the table that doesn't always have a date. Then, you will need to something like you were beginning to do in the column for returning the date you will use for...
  16. B

    Exporting Query to Excel

    You can concatenate the fields using a function and in the query add the function as a column with whatever else is included in the data. Function Concatenate(GetKey) As String Dim Rst As DAO.Recordset, MySql As String Concatenate = "" MySql = "SELECT * FROM " & tblMilestones & " WHERE (((...
  17. B

    usage of Memo field

    If you are using 2007 or later you can have a rich text memo field that will store formatting characters. I believe the limit for a memo field is equal to the actual DB limit of almost 2 Gig, obviously not needed for just a few paragraphs. If you want a very large box for typing but don't...
  18. B

    Blank lines in report

    Take a look at the attached. Open the report in Print Preview for it work. Code is in the ProductID footer On Format.
  19. B

    Question Publication table issue

    Start with a clean DB, import all your queries, forms, reports, macros and modules and then import 1 table at a time, test your DB to see if you get the Sharepoint message and keep importing each table 1 at a time. If you get the sharepoint message than you know that last table is still linked...
  20. B

    Greyed Out New Record Problem

    Glad you understand. Good Luck with the rest of your project.
Back
Top Bottom