Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MaxHeadroom

    Access Newbie: Need to execute second SQL query in VBA for a report

    Thats fantastic - did the trick nicely. Here's the final code I used: Option Compare Database Dim FirstPass As Integer Private Sub grpHeaderCommitteeID_Format(Cancel As Integer, FormatCount As Integer) FirstPass = False Dim rs As DAO.Recordset Dim strSQL As String Dim strCHAIRS As String...
  2. MaxHeadroom

    Access Newbie: Need to execute second SQL query in VBA for a report

    I've got the following so far, just to see if I can even open the recordset: Option Compare Database Private Sub grpHeaderCommitteeID_Format(Cancel As Integer, FormatCount As Integer) Dim rstChairmen As DAO.Recordset Dim strSQL As String strSQL = "SELECT Participants.FirstName...
  3. MaxHeadroom

    Access Newbie: Need to execute second SQL query in VBA for a report

    That's pretty much the approach I'm trying to take - the SQL is from the query builder, and I know it works. The problem is getting access to display those two names (or one name if the committee only has one chairperson) in the header. I was trying to: Set a recordset with that sql as the...
  4. MaxHeadroom

    Access Newbie: Need to execute second SQL query in VBA for a report

    The problem with Dlookup is that it only returns one value - Each committee will have at leats 2 chairpeople.
  5. MaxHeadroom

    Access Newbie: Need to execute second SQL query in VBA for a report

    Hi, I'm putting together an access DB for a confernece I'll be involved in running. I've got a main table containing a list of people, their groups, and their roles. I'm using access XP / 2002 and its an MDB file. I have a query which selects people who have role ID 1, formats their names...
  6. MaxHeadroom

    Convert Integer to String?

    Hey, here's an alternative approach :-D: int iNumber = 10; CString szString; szString.Format("%d", iNumber); MaxHeadroom

Part and Inventory Search

Back
Top