I was experimenting with explicitly using the item property and the index and that worked.
catGetParamQry.Procedures.Item(0).Command
Then I replaced it with the original code
catGetParamQry.Procedures("qryActiveEmp").Command
and now it works fine.
Any idea on why that ocurred...
I do not get an error using DoCmd, but this is a parameterized qry and I was going to pass in a parameter.
As a test I created a similar scenario in a different db and the same error is generated.
I have a sub where I'am trying to open up an existing qry
and this error is generated:
Run time error 3265
Item cannot be found in the collection corresponding to the requested name or ordinal
The spelling of the qry is correct.
Dim cmdCurr As New ADODB.Command
Dim catGetParamQry As New...
I am exporting files to a number of clients, by looping thru
a recordset, I have found that I have to set the object in the loop otherwise it appears that the object is sent and only the first record will be sent. This doesn't seem like the proper way to code this.
Any suggestions on the proper...
Tried reversing the loop same result.
RemoveAllItems generates a compiler error.
At least I realize the remaining items are getting reindexed.
Thank you,
oaquao
Hello,
I have 2 combo boxes cmbMuscleGroup cmbMusclePart.
When I choose an item from cmbMuscleGroup ex.chest the corresponding items appear in the cmbMusclePart ex. upper,middle,lower
If a mistake was made and I wanted to change cmbMuscleGroup,
I want to remove the items from cmbMusclePart...
I have an MFC dialog based application, I have two forms and when I click a button on the first form I want to set the text of an edit box on the second form to a variable.
scoreDlg.DoModal();//second form
m_editScore.SetWindowText(score);//edit box on second form
Thanks for any help
oaquao
I'am trying to retrieve the text from an edit box.
long WINAPI MainWndProc(HWND hWnd,UINT msg,WPARAM wParam,
LPARAM lParam){
HWND hwndCtl=(HWND) lParam;
int nMaxCount=30;
char* str;
switch (msg)
{
case WM_GETTEXT:
if (hwndCtl==hWndEditQues1)...
I'am a student who has just started C++ and for practice I'am writing a simple game.
I have checked the archives and found nothing pertaining to this.
If a user enters improper data such as a number or nothing I want to correct it.
struct player
{
char firstName[ArSize];
int score;
}...
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.