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?
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?
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
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...
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...
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...
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
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;
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] ?
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...
...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...
...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...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.