Search results

  1. David R

    Pace Per Mile help

    Funny, I had to do this in my Running Google Doc recently... :p I'm going to proceed as if your [RunTime] field is text... please advise if that's untrue. If you're pretty sure you won't be running over 59:59 anytime soon, the calculation is pretty simple: RawTime...
  2. David R

    Delete a selected record in a subfrom by using a button

    Not sure I understand your question, but it sounds like you want WHERE bar=3 AND foo=True
  3. David R

    Database for specific computer, help expert please

    Did you Google it? One of the first results led me to http://www.mrexcel.com/forum/excel-questions/457262-visual-basic-applications-code-do-check-valid-use-computer.html#post2258486
  4. David R

    Event problem

    Have you set a breakpoint and stepped through? Sometimes code jumps from one event to another more than you ever expect, and that may be how you're ending up somewhere else...
  5. David R

    opening a report in full window mode

    Only way I ever saw to do this was from the report, not the button calling it. Private Sub Report_Open(Cancel As Integer) DoCmd.Maximize End Sub
  6. David R

    Capture database name

    CurrentDb.TableDefs("tableName").Connect will get you the string, you'll need to chop it down a bit with Left/Right/Mid to get it to look nice. Mid(CurrentDb.TableDefs("tableName").Connect,InStrRev(CurrentDb.TableDefs("tableName").Connect,"\")+1,99) will get you close.
  7. David R

    Form coding problem

    What happens if you put? DCount("[UserPWD]", "tblUsers", "[UserName]='" & "sampleusername" & "'") into the VBA Immediate window? Any user will do, just make sure that line is working by itself.
  8. David R

    Calculated Field in Table - Week Num

    In almost all cases Access will treat a query based on a single table the same as it would the table itself. You'll be able to update the non-calculated fields, add and delete records, etc. So I still think you'll save yourself time and energy by putting it in a query. Also if you have to show...
  9. David R

    Conditional Formating on Page break

    Can you post a stripped-down version of the database with dummy data in it? That might help someone give you answer (like I said, I have no idea how to proceed with that... is the page-break even determined in Access, or in Word?)
  10. David R

    how to filter using date range but show all records if text box's are null

    Are you using VBA behind the button to open the report? Drop the criteria in your query, it's not flexible enough for this. This is aircode, but something like this should work:IF (IsNull(Me.[Text6]) OR IsNull(Me.[Text8])) Then DoCmd.OpenReport "ReportName",acViewPreview Else...
  11. David R

    Calculated Field in Table - Week Num

    Or just put the calculated field into your query and use the query (instead of the table) anywhere you need the field+week.
  12. David R

    how to filter using date range but show all records if text box's are null

    So you're filtering from fields on the report itself? Because I thought you said you were using a form... Anyway, try looking into IsNull(). You can drop that criteria entirely if it's a blank field.
  13. David R

    Conditional Formating on Page break

    That sounds AWFUL. Without giving an actual answer, would it be faster to just rewrite it as a series of Access reports??
  14. David R

    Target store security breach - Worried? Is the problem being addressed?

    Several other companies are now in the news as well, it wasn't just Target. Why the US still has such lax security astonishes me... but then not really.
  15. David R

    Send Email Conditions

    Are you CERTAIN it will be the most recent record insertion? What if you have more than one user in the system that day? Anyway, sounds like you need to add an additional criterion that identifies that most recent record for the system, and spits out that record every time. It'll probably be...
  16. David R

    Errors with Simultaneous Multiple Users

    I concur, if it's only going to be updated every so often, you will find your life much simpler with an imported version. There's probably code out there to check and see if it's been updated, and import it automatically on boot that day, but that may be more trouble than it's worth. Heck, do...
  17. David R

    Errors with Simultaneous Multiple Users

    What error message are they getting? I frequently hit an error message (in Excel) if I have the sheet open as a linked table in Access (or ArcGIS, or...). But sometimes if you've got it open in Excel, they won't be able to open it in Access as well. It's tricky. Do they really need to update...
  18. David R

    Split a table into two

    Please list any fields you have that end in 1, 2, 3, 4, etc. Or upload a screencapture of your table Design window. Access is NOT a spreadsheet.
  19. David R

    Split a table into two

    What are your fields? I'll bet you even money that you need to normalize your database, rather than split your table in half. Google it or search the forums.
  20. David R

    Emailing table results

    DoCmd.OutputTo will be your friend here... depending on whether you want Excel, PDF, whatever for the output. When you say the 'output' of two tables, do you mean a query? You can use a variety of methods to get the number of rows (DCount is easiest, but slow), and if it's 0, don't even bother...
Back
Top Bottom