<div dir="ltr">Thanks Andreas,<div>   I used a crude but effective workaround by selecting the polygon and then the points in the polygon and then doing a simple {case when "Variable" is NULL then 'String' else "Variable" end} for each polygon (I only had nine so it wasn't too much of a strain) and it worked fine.</div>
<div><br></div><div>Cheers,</div><div><br></div><div>Pat</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 September 2013 22:24, Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pat,<br>
<br>
The "Vector" --> "Data management tools" --> "Join attributes by<br>
location" will also join attributes from the polygon layer - of course,<br>
depending on the spatial join, it will have to aggregate the data like<br>
you also have to in SQL if you have a 1:n relation - but you can also<br>
choose to use the attributes of the first hit.<br>
<br>
Other than that I do not think the field calculator allows to reference<br>
data from other layers.<br>
<br>
In QGIS 2.1 we will work on database relations. Although spatial joins<br>
are not the primary goal of this work, we may work on these as well.<br>
<br>
Hope this helps.<br>
<br>
Andreas<br>
<br>
Am 23.09.2013 19:41, schrieb Pat Brown:<br>
<div><div class="h5">> Hi,<br>
>    I have a polygon layer and a point layer. Using "Points in Polygons" I<br>
> have isolated a set of points that occur in one particular polygon. This<br>
> polygon has a name in the polygon Attribute Table. I have created a field<br>
> in the point table and now I want to read from the polygon table the name<br>
> of the polygon and write it into the point table against each of the points<br>
> in the selection. I cannot work out the syntax in the calculator to read<br>
> from one table and write to another table. Can anyone help please?<br>
><br>
> Pat<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br></div>