if you've copied/pasted the code directly from your VBA module (and ignoring
the automatic line wrap that occurs in the newsreader), then your problem
might be the lack of a space between Esecutore and FROM, as
"SELECT '" & strValue1 & "' As CatalogueNr, '" &
strValue2 & "' as Univoco, TrackNr, Title, Length, Autore, Cantante,
Strum, Esecutore" & _
"FROM [Tbl_Audio_PRINCIPALETRACK] WHERE Univoco = "
& Me.Univoco & ";"
so that, when concatenated by the system, the string reads as " as Univoco,
TrackNr, Title, Length, Autore, Cantante, Strum, EsecutoreFROM
[Tbl_Audio_PRINCIPALETRACK] WHERE Univoco = "
try adding a space after Esecutore, as
"SELECT '" & strValue1 & "' As CatalogueNr, '" &
strValue2 & "' as Univoco, TrackNr, Title, Length, Autore, Cantante,
Strum, Esecutore " & _
"FROM [Tbl_Audio_PRINCIPALETRACK] WHERE Univoco = "
& Me.Univoco & ";"
hth
> Hi everybody,
>
[quoted text clipped - 67 lines]
>
> Erika
Ami - 02 Aug 2006 21:08 GMT
> if you've copied/pasted the code directly from your VBA module (and ignoring
> the automatic line wrap that occurs in the newsreader), then your problem
> might be the lack of a space between Esecutore and FROM, as
[cut]
> try adding a space after Esecutore, as
>
[quoted text clipped - 3 lines]
> "FROM [Tbl_Audio_PRINCIPALETRACK] WHERE Univoco = "
> & Me.Univoco & ";"
Hi!
I've been out of town for a couple of days, but I am back.
Thanks for you suggestions, I followed your advice, bit it is not
working.
I am afraid that, somehow, here is the problem:
"SELECT '" & strValue1 & "' As CatalogueNr, '" & ...
I need to change the values of the two fields CatalogueNr and Univoco
so that they may have now the same value as the corresponding field in
the main form.
But I can't get it to work.
Thanks in advance!
Erika
> > Hi everybody,
> >
[quoted text clipped - 67 lines]
> >
> > Erika
tina - 03 Aug 2006 14:09 GMT
in the code you originally posted, the strValue1 and strValue2 values are
coming from input boxes. if you want the values to be taken from controls on
your form instead, then you need to change the values assignments for those
two variables, as
strValue1 = Me!CatalogueNr
strValue2 = Me!Univoco
if the two controls on your form have different names, then substitute the
correct names in the code above.
hth
> I am afraid that, somehow, here is the problem:
>
[quoted text clipped - 3 lines]
> so that they may have now the same value as the corresponding field in
> the main form.