Ok, Problem 1,
I have a linked subform in which i want to create new reords, however every method i have attempted brings me the erorr that a missing index record is needed in the main form, now this index exisists and its almost as if when i atempt to create a new record in my subform it trys to create one in the main form as well. Any suggestion of how to tackle this?? an example is below
with me.[subform].recordsetClone
.addnew
!week = 1
!resource = 4
.update
endw ith
Problem 2,
I have developed a ganett chart view in a report and need to retrieve single values from the tables, I have a sql statment that does just the job but im not sure of how i copy the value found by the sql statment into a vairable. an example of wot i want to do is
variable = docmd.runsql ("Select blar blar")
'ovb that wud be to easy
Help please!
I have a linked subform in which i want to create new reords, however every method i have attempted brings me the erorr that a missing index record is needed in the main form, now this index exisists and its almost as if when i atempt to create a new record in my subform it trys to create one in the main form as well. Any suggestion of how to tackle this?? an example is below
with me.[subform].recordsetClone
.addnew
!week = 1
!resource = 4
.update
endw ith
Problem 2,
I have developed a ganett chart view in a report and need to retrieve single values from the tables, I have a sql statment that does just the job but im not sure of how i copy the value found by the sql statment into a vairable. an example of wot i want to do is
variable = docmd.runsql ("Select blar blar")
'ovb that wud be to easy
Help please!