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 strongm 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: *

  • Users: Rmcta
  • Order by date
  1. Rmcta

    Event on Tab Control

    I have created a form with tab controls. One tab is to browse records the other one I wish to use to Add records. On the on-click event of the tab I inserted: DoCmd.GoToRecord , , acNewRec but it does not do anything. Why? How do I get a new record when the user click on the "Add Record" tab?
  2. Rmcta

    How do I set up the default value of a combo box?

    One more question: I open the form and my default values are ok. On the same form a user clicks a button to load new data. Now my default values are no longer correct. Is there a way to refresh the queries that populate the default value of my combo boxes?
  3. Rmcta

    How do I set up the default value of a combo box?

    Thank you all for your great help!
  4. Rmcta

    How do I set up the default value of a combo box?

    I have a combo box on a form with the following row source: SELECT qryDate.AccessDate FROM qryDate; I would like to set up its default value to Min(qryDate.AccessDate). Can it be done? If yes, how? I don't seem to be able to make it work. Thank you
  5. Rmcta

    How do I create an outlook form with checkboxes?

    I would like to create a form to send out to someone with a list of times and a checkbox and the side of each item. I need the person to check the boxes that apply. Can it be done? I tried Tools/Forms/Design a Form/(p.2)/ From the Toolbox I dragged a couple of checkboxes into the page. Form/Run...
  6. Rmcta

    Is there a way to filter by the top 5?

    Now I have another problem.. Here is my sample data: Calls date 45 1/1/2004 42 2/2/2004 41 1/1/2004 41 2/2/2004 39 1/1/2004 39 1/1/2004 38 2/2/2004 37 2/2/2004 36 1/1/2004 35 2/2/2004 35 1/1/2004 33 1/1/2004 29 2/2/2004 25 2/2/2004 21 2/2/2004 The following query: SELECT TOP 5...
  7. Rmcta

    Is there a way to filter by the top 5?

    Fantastic! Thank you very much :)
  8. Rmcta

    Is there a way to filter by the top 5?

    Not to play with real data, I have created a test table as follows: Name Calls Sabado 35 Daniel 41 Denise 42 Lisa 45 Ann 25 Bob 33 Susan 29 Jenn 39 Helen 37 Joe 36 Lori 38 How do I create a query that returns the people who made most calls? I must retrieve the TOP FIVE only. This is just an...
  9. Rmcta

    Bit manipulation

    Thank you. Very helpful indeed.
  10. Rmcta

    Bit manipulation

    ops...you are correct: I did mess up my & operations. Thank you for your guidance. I truly appreciate it. I might have more questions tomorrow. Good night
  11. Rmcta

    Bit manipulation

    I understand dec, hex, oct , bin convertion. I also understand & | ^ ~ operators: 0 & 0 = 0; 0 & 1 = 1; 1 & 0 = 1; 1 & 1 = 0; 0 | 0 = 0; 0 | 1 = 1; 1 | 0 = 1; 1 | 1 = 1; 0 ^ 0 = 0; 0 ^ 1 = 1; 1 ^ 0 = 1; 1 ^ 1 = 0; in ~ each bit gets reversed: 0 becomes 1 1 becomes 0 << shift to the left; >>...
  12. Rmcta

    Bit manipulation

    Can someone help me understand how bit manipulation works? I have an exam next week and know nothing about it. Please help!!! [sadeyes]
  13. Rmcta

    malloc

    Thank you! :)
  14. Rmcta

    malloc

    Would this be correct then? void *temp = (int *)realloc(p, sizeof(int) *5); if (temp ==NULL) {printf("Reallocation did not work!"); return 1;} else p = (int *)temp; p[3] = 144; p[4] = 15;
  15. Rmcta

    malloc

    Thank you itsgsd for your great explanation. After I issue: void *temp = realloc(p, sizeof(int) *5); are pointer p and temp pointing to the same location? is it the same to say: p[1], p[2], p[3], p[4], p[5] or temp[1], temp[2], temp[4], temp[5] ?
  16. Rmcta

    malloc

    Thank you Salem. This part of the code then is ok: include <stdio.h> #include <stdlib.h> /* required for the malloc and free functions */ int main() { int *p; int i; p=(int *)calloc(3, sizeof(int)); /*I had to add (int *) for my compiler */ if (p==NULL) {printf("Did...
  17. Rmcta

    malloc

    ...in the first group 2) why after I clear the memory (see second group) p3 and p4 still hold their value? #include <stdio.h> #include <stdlib.h> /* required for the malloc and free functions */ int main() { int *p; int i; p=(int *)calloc(3, sizeof(int)); /*I had to add (int *) for my...
  18. Rmcta

    malloc

    ...to understand how to use malloc, calloc and realloc. I am getting the following error for below code: error C2440: '=' : cannot convert from 'void *' to 'char *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast #include <stdio.h> #include <stdlib.h> main() { char...
  19. Rmcta

    How does rand() work?

    Thank you!
  20. Rmcta

    How does rand() work?

    I am studying rand() so I tried the following: int x; x=rand(); I do a printf of x and every time I run it, the number is always 41???? Am I doing something wrong?

Part and Inventory Search

Back
Top